Linux Command Library
commands
Commands
basic
Basic
tips
Tips

lp

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.

lpr(1).

LPRng was written by Patrick Powell <papowell@lprng.com>.

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 lprng-devel@lists.sourceforge.net; subscribe by visiting https://lists.sourceforge.net/lists/listinfo/lprng-devel or sending mail to lprng-request@lists.sourceforge.net with the word subscribe in the body. The software is available via http://lprng.sourceforge.net

play store download app store download
Imprint
Sonnenallee 29, 12047 Berlin, Germany
e-mail: sschubert89@gmail.com

Privacy policy
Successfully copied