mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
b8d86fac3c
* Update lp.md * Update lpoptions.md * Update lpstat.md
624 B
624 B
lp
Print files. See also:
lpstat,lpoptions. More information: https://manned.org/lp.
- Print the output of a command to the default printer (see
lpstatcommand):
echo "test" | lp
- Print a file to the default printer:
lp {{path/to/file}}
- Print a file to a named printer (see
lpstatcommand):
lp -d {{printer_name}} {{path/to/file}}
- Print
ncopies of a file to the default printer:
lp -n {{n}} {{path/to/file}}
- Print only certain pages to the default printer (print pages 1, 3-5, and 16):
lp -P 1,3-5,16 {{path/to/file}}
- Resume printing a job:
lp -i {{job_id}} -H resume