What does ln stand for

lnsymlink

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 as ls meaning "list", cp means "copy" and mv means "move".

They are part of the "two letter commands", for example:

  • ar — ARchive
  • as — ASsembler
  • bc — Basic Calculator
  • cc — C Compiler
  • cp — CoPy files and directories
  • dc — Desk Calculator
  • dd — Data Description: convert and copy a file
  • df — Disk Free: report file system disk space usage
  • du — Disk Usage
  • ed — EDitor
  • ld — Link eDitor
  • ln — make LiNks between files
  • lp — Line Printer
  • ls — LiSt directory contents
  • mv — MoVe (rename) files
  • nl — Number Lines of file
  • nm — NaMe list
  • od — Octal Dump
  • pg — PaGinate
  • pr — (PRetty) PRint
  • ps — Process Status: report a snapshot of the current proceses.
  • rm — ReMove files or directories
  • sh — SHell
  • su — run a command with Substitute User and group ID / originally Super User
  • vi — VIsual editor
  • wc — Word Count
Related Question