r/linuxadmin • • Jul 27 '15

moreutils: the utilities package every UNIX/Linux/Mac OS developer should know

http://rentes.github.io/unix/utilities/2015/07/27/moreutils-package/
64 Upvotes

30 comments sorted by

View all comments

Show parent comment

4

u/holyteach Jul 28 '15

The order for symlinks is the same as the order for 'cp'.

cp SOURCE DEST

ln -s SOURCE DEST

I could never remember that either until that occurred to me.

2

u/anomalous_cowherd Jul 28 '15

I always remember that it defaults to creating a link with the same name but in the current directory. Which means that the first and possibly only parameter MUST be the source which already exists.

It makes more sense in my head.