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. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access