O'Reilly logo

Learning the UNIX Operating System, Fourth Edition by Jerry Peek, John Strang, Grace Todino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Reference

Commands and Their Meanings

cancel request

Cancel an lp print request.

cat files

Display one or more files.

cd

Change to home directory.

cd pathname

Change working directory to pathname.

cp old new

Copy old file to new file.

date

Display current date and time.

grep “pattern” files

Show lines matching pattern in files.

kill PID

End process PID.

lp files

Send files to default printer.

lpq

Check requests on lpr printer queue.

lpr files

Send files to default printer.

lprm request

Cancel an lpr print request.

lpstat

Check requests on lp printer queue.

ls

List names of files in working directory.

mail

Read your own mail.

mail user

Send mail to user.

man command

Display manual page of command.

mkdir pathname

Create a new directory with pathname.

more files

Display one screenful of each file at a time.

mv old new

Move or rename old file to new file.

pg files

Display one screenful of each file at a time.

ps

List your processes and their PIDs.

pwd

Print working (current) directory name.

rm files

Remove files.

rmdir pathname

Remove empty directory with pathname.

sort files

Sort lines of files.

who

List users currently on system.

who am i

Display listing for this session.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required