Patrick, On Monday 30 August 2004 21:11, Patrick Shanahan wrote:
* Tom Nielsen <tom@neuro-logic.com> [08-30-04 22:54]:
I've googled, but decided not to spend all night searching.
File1 sym'd to file2 file2 sym'd to file3 file3
I want to remove the sym link from file2....how?
this is a tough one. I agree, a search would have taken a *long* time. At least as long as to type the search term into the form block on google.com/linux.
man rm
Did you follow your own advice in order to confirm it's usefulness? Actually, this one is not so straightforward to find in the manual. The "rm" man page doesn't mention any of the special details pertinent to the treatment of symbolic links. The relevant information is on the "unlink (3p) man page, where the following statement appears: "If path names a symbolic link, unlink() shall remove the symbolic link named by path and shall not affect any file or directory named by the contents of the symbolic link." If one doesn't know that the system call that forms the basis of the "rm" command is "unlink" (and why would one?), then the hunt for the information could be a lengthy one.
Patrick Shanahan
Randall Schulz