ln command (hard and symbolic links)
Dan Lund
situationalawareness at gmail.com
Fri Nov 9 12:42:44 MST 2007
A hard link is a link which cannot go across filesystems, and is a
pointer inside of the filesystem to another files inode. When you
create a hard link, what you are effectively doing is:
1) creating a link to another file
2) increasing the original files "link count" by 1.
Effectively, you can remove the original file and it will still be
accessible through the hard link. Once all hardlinks to the file are
removed, the file disappears from the filesystem.
A soft link is equivalent to a shortcut in windows, and can go across
filesystems.
On Nov 9, 2007 12:38 PM, keith smith <klsmith2020 at yahoo.com> wrote:
>
> Hi everyone,
>
> I'm needing to share some files between two hosting accounts and am looking
> at creating a few symbolic links.
>
> In reading the man page for ln it says it creates a hard link by default or
> I can use --symbolic to create a symbolic link.
>
> What is the difference between a hard link and a symbolic link and why would
> I want to use one over the other?
>
> Thanks a bunch in advance for your help.
>
> Keith
>
>
> ------------------------
> Keith Smith
> (480) 584-4772
> PHP Programming
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
--
Thanks,
Dan Lund
"It is our business to competently administrate value-added methods of
empowerment so that we may endeavor to completely engineer inexpensive
solutions"
More information about the PLUG-discuss
mailing list