In Linux you can use the ln
command to make links.
$ touch foo
$ ln -s foo foo_link
$ ls -l
lrwxrwxrwx 1 cklein cklein 3 May 29 16:11 foo_link -> foo
I assume that the 'l' in ln
stands for "link", but what does the 'n' stand for?
What does ln
stand for?
Best Answer
All the
ln
means "link", not just the "l". Just the same asls
meaning "list",cp
means "copy" andmv
means "move".They are part of the "two letter commands", for example:
ar
— ARchiveas
— ASsemblerbc
— Basic Calculatorcc
— C Compilercp
— CoPy files and directoriesdc
— Desk Calculatordd
— Data Description: convert and copy a filedf
— Disk Free: report file system disk space usagedu
— Disk Usageed
— EDitorld
— Link eDitorln
— make LiNks between fileslp
— Line Printerls
— LiSt directory contentsmv
— MoVe (rename) filesnl
— Number Lines of filenm
— NaMe listod
— Octal Dumppg
— PaGinatepr
— (PRetty) PRintps
— Process Status: report a snapshot of the current proceses.rm
— ReMove files or directoriessh
— SHellsu
— run a command with Substitute User and group ID / originally Super Uservi
— VIsual editorwc
— Word Count