mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 14:55:56 +00:00
Update cheatsheets
This commit is contained in:
33
lp
Normal file
33
lp
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lp
|
||||
|
||||
> Print files.
|
||||
> More information: <https://manned.org/lp>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user