Xerox 3400 Guida Di Riferimento
Reference Guide
7
Linux Printing
Printing from the Linux Shell or Terminal Window within the
X-Window System
The Linux environment has the ability to directly interface with the devices attached to
the computer. There are three basic commands to initiate, view, and delete print jobs:
the computer. There are three basic commands to initiate, view, and delete print jobs:
■
LPR
■
LPQ
■
LPRM
LPR sends the document to the designated printer; this is the format:
$ lpr [ options ] [ filename ... ]
Example: $ lpr thesis.txt prints the file named thesis.txt
Example: $ lpr thesis.txt prints the file named thesis.txt
Options:
-#x = number of copies
Example: $ lpr -#2 thesis.txt prints 2 copies
Example: $ lpr -#2 thesis.txt prints 2 copies
-Pprintername = specific printer name (if you have multiple printers installed)
Example: $ lpr -P3400 thesis.txt prints on the printer named 3400
Example: $ lpr -P3400 thesis.txt prints on the printer named 3400
LPQ displays all the documents that are in the printer queue waiting to be printed; this is
the format:
the format:
$ lpq
Example: $ lpq at the shell would return:
Example: $ lpq at the shell would return:
LPRM deletes pending print jobs; this is the format:
$ lprm -
Example: $ lprm 31 would delete print job #31 (thesis.txt) from the queue.
Example: $ lprm 31 would delete print job #31 (thesis.txt) from the queue.
Rank
Owner
Job
Files
Total Size
Active
mwf
31
thesis.txt
682048 bytes