The basic command for printing is lpr
. The command commonly takes a single argument, the name of the printer. In the absence of a name, the print job will be sent to ugrad. Typically, the command to print a file named filename to the printer ugrad
would be:
lpr -Pugrad
filename
The command for viewing the queue on a printer is lpq
. The command takes a single parameter, the name of the printer to examine. For example, to see the queue on the printer ugrad
, the command you need to type is:
lpq -Pugrad
The basic command for removing a print jobs which is stuck in the queue is lprm
. The command takes a single argument to remove all of the print jobs you have submitted to a printer, or optionally a job number. Typically, you would execute the following command to remove all jobs in the queue on the printer ugrad
:
lprm -Pugrad
For more information on the previous commands, please consult the on-line manual pages. These can be viewed from any terminal using the command man
commandname. For example, to see all of the information about the command lprm
, you would type:
man lprm
A list of all public printers is available in the COG web area at: https://intranet.cs.nmsu.edu/wp/cog/printers/
Public printers which you will likely use in the course are the following:
PRINTER NAME | MODEL | QUEUES | DESCRIPTION | LOCATION | NOTE |
lxm2 | Lexmark W820 | ugrad2, ugrad2dual, ugrad2fine | ugrad printer | SH 118 | Ugrad Lab |
lxm3 | Lexmark W840 | ugrad, ugraddual, ugradfine | ugrad printer | SH 118 | Ugrad Lab |
lex6 | Lexmark Optra T610 | lex6, lex6dual, lex6fine | Laser Printer | SH 118b | Laptop Classroom |