The lpr command


The lpr command lets you send a UNIX file to a network printer.

You can send either TEXT files or PostScript files to the printer. All other types of files will probably not print out correctly.

The lpr command produces no output unless you have made a mistake.

There are many different printers on the network, and you need to tell the lpr command which printer to use

lpr -Pprinter_name file_to_print

To get a list of the network printers, type

lpstat -a

If you want to send a PostScript file to the printer in B481, you should use the command

lpr -Ppostscript file_to_print

Other popular lpr commands include

For more help with the lpr command or to see the online UNIX manual and all the extensions to the lpr command, click here.


UNIX

Commands

Directory

File

Other

Help

Search