Introduction to the Unix Cluster. Node: Printing
Printing and Process Commands
Since UNIX is a multi-tasking system, there are a number of
commands used to suspend and restart jobs, run processes in the
background, and send information to a printer for output. (More detailed
information about the printers can be found in
Files/Printing.) Listed below are some of the
most useful commands for working with processes and printing:
ps - lists all of your current processes.
command & - puts a process in the background. The shell
can deal with n processes at once, of which at most one is run
in the foreground.
kill - stop a background process from continuing with
kill processID. The process ID (PID) number is listed in
the left column when you invoke ps. The computer may choose to
ignore some kill commands (such as killing one's own shell), but
kill -kill PID is a sure murder). Kill current process
who - lists all the users who are logged on.
finger - find out interesting information about specific users.
You can also finger people off-campus, provided you know their
lookup - find room and phone numbers of Princeton staff and
students through the on-line campus phone book.
lpr - type lpr filename to send the file to a
printer queue for printing. Use the option d to print a DVI
lpq - lists the jobs that are currently on the queue.
lprm - remove a job from the queue by typing lprm
job# (the job number is given by the lpq command).
lprm will not work for any of the Suns except
Lyman. Contact the super-user (Charles Karney) with any problems.