NAME lp - send files to a printerCheck out the Unix Man pages ManualsSYNOPSIS lp [-c] [-d printer] [-n copies] [file ...]
DESCRIPTION The lp utility prints the specified files, or the standard input by de- fault.
The options are as follows:
-c Exit only after further access to the input files is no longer required.
-d Use printer as the output device. If the -d option is not speci- fied, any value of the LPDEST environment variable specifies the printer. If neither the -d option nor LPDEST is specified, any value of the PRINTER environment variable specifies the printer. Otherwise, a default printer is used.
-n Specify the number of copies to print instead of the default 1.
If `-' is specified as a file, the standard input is used.
The lp utility is a front-end for the lpr(1) utility, provided for com- patibility with with the IEEE Std1003.2 (``POSIX'') specification. See the lpr(1) utility for additional information and options.
The lp utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENTAL VARIABLES The following environment variables affect the execution of lp:
LPDEST If the -d option is not specified, any value of the LPDEST envi- ronment variable specifies the output device.
PRINTER If the -d option is not specified and the LPDEST environment variable is not set, any value of the PRINTER environment vari- able specifies the output device.
SEE ALSO lpr(1)
HISTORY The lp command first appeared in BSD/OS release 2.1.