Linux
Command
Library
Basics
Tips
Commands
Printing
Print a file
$
cat
[file] > /dev/lp
$
cat
[file] | lpr
$
pr
-l60 [file] | l
pr
$
lpr
[printerName] [file]
View printing queue
$
lpq
Cancel printing job
$
lprm
- # previous
$
lprm
[jobID]
$
lprm
-a all
$
cancel
[printerName]
$
cancel
-u [user]
Display printer status
$
lpstat
-t
Enable printer
$
enable
[name]
Disable printer
$
disable
[name]
Copied to clipboard