Prev | Current Page 1280 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


Using Printing Commands
To remain backward-compatible with older UNIX and Linux printing facilities, CUPS supports
many of the old commands for working with printing. Most command-line printing with CUPS
can be performed with the lpr command. Word-processing applications such as StarOffice,
OpenOffice, and AbiWord are set up to use this facility for printing.
You can use the Printer Configuration window to define the filters needed for each printer so
that the text can be formatted properly. Options to the lpr command can add filters to properly
process the text. Other commands for managing printed documents include lpq (for viewing the
contents of print queues), lprm (for removing print jobs from the queue), and lpc (for controlling
printers).
Printing with lpr
You can use the lpr command to print documents to both local and remote printers. Document
files can be either added to the end of the lpr command line or directed to the lpr command
using a pipe (|). Here??™s an example of a simple lpr command:
$ lpr doc1.ps
When you specify just a document file with lpr, output is directed to the default printer. As an
individual user, you can change the default printer by setting the value of the PRINTER variable.
Typically, you add the PRINTER variable to one of your startup files, such as $HOME/.


Pages:
1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292