Linux Command Library


compatibility way to feed print jobs to the print daemon.

- Print the output of a command to the default printer (see `lpstat` command):
echo "test" | lp

- Print a file to the default printer:
lp [path/to/filename]

- Print a file to a named printer (see `lpstat` command):
lp -d [printer_name] [path/to/filename]

- Print N copies of file to default printer (replace N with desired number of copies):
lp -n [N] [path/to/filename]

- Print only certain pages to the default printer (print pages 1, 3-5, and 16):
lp -P 1,3-5,16 [path/to/filename]

lp [-ckmprswBGY] [ -d printer ] [ -D dbglvl ] [ -f class ] [ -n num ] [ -q prio ] [ -t title ] files

lp is a (partial) simulation for the Solaris SystemV R4 print facilities and implemented as link to lpr which behaves differently when invoked with this name. Please use lpr directly instead of this program.

A description of the options is still missing.


LPRng was written by Patrick Powell <>.

Most of the diagnostics are self explanatory. If you are puzzled over the exact cause of failure, set the debugging level on (-D5) and run again. The debugging information will help you to pinpoint the exact cause of failure.

LPRng is a enhanced printer spooler system with functionality similar to the Berkeley LPR software. The LPRng developer mailing list is; subscribe by visiting or sending mail to with the word subscribe in the body. The software is available via

play store download app store download
Sonnenallee 29, 12047 Berlin, Germany

Privacy policy
Successfully copied