2015-12-01 02:44:01 +00:00
|
|
|
# lp
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Print files.
|
2021-09-23 19:34:23 +01:00
|
|
|
> More information: <https://manned.org/lp>.
|
2015-12-01 02:44:01 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print the output of a command to the default printer (see `lpstat` command):
|
2015-12-01 02:44:01 +00:00
|
|
|
|
|
|
|
`echo "test" | lp`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print a file to the default printer:
|
2015-12-01 02:44:01 +00:00
|
|
|
|
|
|
|
`lp {{path/to/filename}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print a file to a named printer (see `lpstat` command):
|
2015-12-01 02:44:01 +00:00
|
|
|
|
|
|
|
`lp -d {{printer_name}} {{path/to/filename}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print N copies of file to default printer (replace N with desired number of copies):
|
2015-12-01 02:44:01 +00:00
|
|
|
|
|
|
|
`lp -n {{N}} {{path/to/filename}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print only certain pages to the default printer (print pages 1, 3-5, and 16):
|
2015-12-01 02:44:01 +00:00
|
|
|
|
|
|
|
`lp -P 1,3-5,16 {{path/to/filename}}`
|
2019-07-07 14:12:37 +01:00
|
|
|
|
|
|
|
- Resume printing a job:
|
|
|
|
|
|
|
|
`lp -i {{job_id}} -H resume`
|