2015-12-01 05:44:01 +03:00
|
|
|
# lp
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Print files.
|
2015-12-01 05:44:01 +03:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print the output of a command to the default printer (see `lpstat` command):
|
2015-12-01 05:44:01 +03:00
|
|
|
|
|
|
|
`echo "test" | lp`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print a file to the default printer:
|
2015-12-01 05:44:01 +03:00
|
|
|
|
|
|
|
`lp {{path/to/filename}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print a file to a named printer (see `lpstat` command):
|
2015-12-01 05:44:01 +03:00
|
|
|
|
|
|
|
`lp -d {{printer_name}} {{path/to/filename}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print N copies of file to default printer (replace N with desired number of copies):
|
2015-12-01 05:44:01 +03:00
|
|
|
|
|
|
|
`lp -n {{N}} {{path/to/filename}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Print only certain pages to the default printer (print pages 1, 3-5, and 16):
|
2015-12-01 05:44:01 +03:00
|
|
|
|
|
|
|
`lp -P 1,3-5,16 {{path/to/filename}}`
|