symlink confusion

Marty Landman MLandman at
Wed Nov 12 12:38:52 PST 2003

At 03:00 PM 11/12/2003, you wrote:

># ln -s /home/steve/directory /tmp/directory
># rm /tmp/directory
>In testing, the original directory (/home/steve/directory) did not get removed

I'm a newbie Steve so maybe will be asking more than answering here. But 
isn't it the case that with a soft link as you created in the first line in 
the second line you'd only be deleting the link itself and not the actual 
directory? But if you used a hard link

# ln /home/steve/directory /tmp/directory
# rm /tmp/directory

then the real directory would be deleted?

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website:

More information about the freebsd-questions mailing list