If you’re an old UNIX hand and like to use command-line tools to run print jobs, you still have them available from CUPS.
You can print to your default printer with a command like:
If you haven’t set a default printer or want to change it, add a line to your .bashrc profile file like this:
And if you want to override that default for a single print job, use this kind of command:
lpr -P djet600 document.txt
List the status of your printers with:
Remove (kill) print jobs with an lprm command:
lprm -P djet850 #Kills jobs on this printer
lprm – #Kills all your print jobs
lprm glenn #Kills all of glenn’s print jobs – you have to be root to do this
lprm 166 #Kills job 166; find this number by issuing the lpq command.