Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

1 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, just in /bin:

  • 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
  • ln — make LiNks between files
  • ls — LiSt directory contents
  • mv — MoVe (rename) files
  • 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
  • vi — VIsual editor
share|improve this answer
I think that su comes from 'super user' instead – Frederik Deweerdt May 29 at 22:33
6  
Maybe, or just "switch user". – Alberte Romero May 29 at 22:35
16  
Actually, checking in the UNIX PROGRAMMER’S MANUAL, Seventh Edition, Volume 1, January, 1979. It says 'substitute user'. – Frederik Deweerdt May 29 at 22:43
1  
I think your description for su is a bit misleading. su runs a command with a substitute user and group ID. It doesn't change the current user's UID or make the current user a superuser. – Evan Teitelman May 29 at 23:05
3  
The Unix First Edition man pages are available on the Internet. – Gilles May 30 at 0:21
show 7 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.