MOVING AROUND
ls, cd and pwd
The GNU manual calls ls the program that lists directory contents, and pwd prints the working directory. The POSIX standard says cd changes the working directory.
Check a commandWHAT THE MANUALS SAY
The command line has its own vocabulary.
Most of it is shorthand: ls for list, pwd for print working directory, grep for an old editor command. Once you can read the words, you can tell which ones only look and which ones change things.
Check a command Read the short answer
THE SHORT ANSWER
The names look cryptic, but most are shorthand.
Read the word and you know the job.
MOVING AROUND
The GNU manual calls ls the program that lists directory contents, and pwd prints the working directory. The POSIX standard says cd changes the working directory.
Check a commandSEARCHING
The GNU grep manual says the name comes from the old ed editor, where g/re/p meant global, regular expression, print: show every matching line.
See the historyPOWER
The sudo project describes it as su “do”: it lets an administrator give chosen users the power to run commands as root, with a record of what was run.
Use it carefullyA QUICK COMMAND CHECK
Pick a common command to see what its name means and how much it can change on your computer. The bar shows how much care it deserves before you press Enter.
Based on the GNU Coreutils manual and the sudo project's own description. General information, not advice for any particular system.
TWO NUMBERS WORTH KNOWING
One figure on how the manual is divided,
one on how long sudo has been around.
THE MANUAL
Numbered sections in the man pages
9 sections
The man command's own page lists sections 1 to 9: 1 is for programs and shell commands, 8 for system administration commands, usually only for root, and 9 (non-standard) for kernel routines.
SUDO
When sudo was first written
≈ 1980
The sudo project says sudo was first conceived and implemented around 1980 at the Department of Computer Science at SUNY/Buffalo. An updated version was posted to Usenet in December 1985.
Sources: man(1) on man7.org; A Brief History of Sudo on sudo.ws.

SAFER HABITS
A few habits taken straight from the manuals make the command line less risky.
THE MANUAL
Almost every command has a manual page. Typing man ls shows the page for ls, and man looks through the numbered sections in order and shows the first page it finds.
Section 1 covers programs and shell commands, section 5 file formats such as /etc/passwd, and section 8 system administration commands, which are usually only for root.

QUESTIONS PEOPLE ASK
It is short for list. The GNU Coreutils manual describes ls as the program that lists information about files, including directories. By default it skips names that begin with a dot.
The GNU grep manual says the name comes from the way line editing was done on Unix: in the ed editor, g/re/p meant global, regular expression, print, which shows every matching line.
The sudo project describes it as su “do”. It lets a system administrator allow chosen users to run some or all commands as root or another user, and keeps an audit trail of the commands run.
No. cd changes the working directory of the current shell, and the POSIX standard says that because of this it is always provided as a shell built-in rather than a separate program.
Yes. The GNU manual says rm -i prompts before removing each file, and rm -I prompts once if more than three files are named or a recursive removal is requested.
SOURCES
Each figure on this page comes from the sources below. Check them for the full detail and context.