RE: RE: RE: Example of using 'ln'
Posted: 1/8/2004 1:14:12 AM
By: Comfortably Anonymous
Times Read: 2,182
0 Dislikes: 0
Topic: Linux
Parent Message
ok, I could be wrong here, but i thought "ln -s /blah/blah.txt blah.txt" would create a softlink (symbolic link, symlink) to the original blah.txt (and the original is located in the directory /blah/)

but doing "ln /blah/blah.txt blah.txt" would create a hard link to the same file.

and, if you create a symbolic link, then delete the original blah.txt (i.e. /blah/blah.txt) then the link you created "dangles" i.e. isn't linked to anything anymore.  

but, if you created a hard link, and then delete the hard link, the original file goes away too.  

however, what i'm not clear on is if i create a hard link, then delete the original file, does the hard link become a softlink?  or does it disappear too?  guess it's time to go test it out . . .
Rating: (You must be logged in to vote)