Friday, January 21, 2011

Linux Printing Commands

Few basic printing commands used in linux

# lpr xyz.doc (Print xyz.doc on default printer)

# export PRINTER=hp3000 (Change the default printer)

# lpr -Php3300 #2 xyz.doc (Use printer hp3300 and print 2 copies)

# lpq (Check the queue on default printer)

# lpq -l -P hp3300 (Queue on printer hp3300 with verbose)

# lprm - (Remove all users jobs on default printer)

# lprm -P hp3300 1500 (Remove job 1500, Find job number with lpq)

# lpc status (List all available printers)

# lpc status hp3300 (Check if printer is online and the queue length)

No comments:

Post a Comment