LinuxCommandLibrary

Printing

Print a file

cat [file] > /dev/lp
copy
cat [file] | lpr
copy
pr -l60 [file] | l pr
copy
lpr [printerName] [file]
copy

View printing queue

lpq
copy

Cancel printing job

lprm - # previous
copy
lprm [jobID]
copy
lprm -a all
copy
cancel [printerName]
copy
cancel -u [user]
copy

Display printer status

lpstat -t
copy

Enable printer

enable [name]
copy

Disable printer

disable [name]
copy
Copied to clipboard