Symbolic links question - (nf)

dan at haddock.UUCP dan at haddock.UUCP
Wed Jun 27 13:47:44 AEST 1984


#R:noscvax:-52100:haddock:16700022:000:578
haddock!dan    Jun 26 01:42:00 1984

The general rule is that symbolic links are just like additional hard links.
If foo.sl were an additional hard link to a file that already existed under
another name, then 'mv foo.sl foo2' would rename the additional hard link
without otherwise affecting the file, while 'cp foo.sl foo2' would copy
the contents of the file, and 'rm foo.sl' would remove the additional
hard link and leave the file in place under its original name.

The exception to this rule is 'ls', because it's useful for ls's report
to tell you whether you've got a symbolic link in this directory or not.



More information about the Comp.unix mailing list