Date Tags quicktip

Inspired by a tweet from @rfletcherEW

Creating links and symlinks from the commandline involves the use of the ln command.  In the past I always forgot which parameter was the existing file/directory and the which was the link I wanted to create. So here's my quick tip to remember.

ln can create a link with the same name as the target in the current directory.  So if you execute ln -s /bin/ls you will end up with a symlink in the current directory called ls Given that, it's an easy step to remember that, as sometimes it's the only parameter.

tl;dr version?

The first parameter in an ln command is the existing file.

Darren @ Æ


Comments

comments powered by Disqus