What does this do?
ln -nsf
I know ln -s
creates a symbolic link, not a hard link which means you can delete it and it won't delete the thing that it's linking to. But what do the other command arguments mean? (-nf)
Update: okay...so I remembered you can find this stuff out from the command line. Here's what I found out from typing ln --help
:
-f, --force remove existing destination files
-n, --no-dereference treat destination that is a symlink to a
directory as if it were a normal file
But this still isn't very clear to me what the implications of this are. Why would I want to create a soft/sym link like this?
-s
you can delete the link without deleting the original file. Hard links increase the link count of the file so it won't be deleted when you delete only one of the links to it.