Chapter 13. Summary of useful commands

Table 13-1. Commands:

a2ps filename send filename to the default printer, formatted in an intelligent way
bg put a job in the background
cal display a calendar
cat filename display the contents of the file
cd change to your home directory
cd pathname change working directory to pathname
chmod permissions filename change permissions on a file
cp oldfile newfile copy oldfile to newfile
cp filename pathname copy filename to a new location
date display system's current date and time
df display disk space information
echo argument display the argument
emacs filename edit filename with the emacs editor
file filename display information about a file
find search for files with various characteristics
fg put a job in the foreground
grep "pattern" files show the lines in files that match pattern
info command shows the (hypertext) info page of command
jobs show jobs currently suspended or running on the terminal
kill PID send a "kill" signal to process with process number PID
less filename display filename on the screen, one page at a time
lpq filename examine the queue of the default printer
lpr filename send filename to the default printer, as plain text
lprm jobnumber cancel jobnumber, obtained with lpq, from the queue of the default printer
ls list the names of files (many, many options)
man command display the manual page of command
mkdir directoryname make a new directory named directoryname
mv oldfile newfile rename oldfile to newfile
mv filename pathname move filename from here to a new location
ps list processes
pwd print working directory name
rm filename remove (delete) filename
rmdir pathname remove an empty directory named pathname
su username assume the identity of username
talk username instant messaging, 25 years before AOL was invented
vi filename edit a file with the vi editor
whereis filename search for a file in standard locations