1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/lp.md
2019-07-07 14:12:37 +01:00

27 lines
594 B
Markdown

# lp
> Print files.
- 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}}`
- Resume printing a job:
`lp -i {{job_id}} -H resume`