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. |
|
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. |
Get Learning the UNIX Operating System, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.