Web page hosting, cheap domain name & website promotion services
  

 Home

Red Hat Linux 7.2: The Official Red Hat Linux Getting Started Guide
PrevChapter 10. Shell Prompt BasicsNext

Printing From The Command Line

Printing is not an involved process whether you click on a button in a GUI or type commands from the command line. But you can cancel print jobs or view jobs in the print queue very quickly by typing a few short commands.

The lpr command followed by a filename sends that file to the print queue, for example lpr foo.txt prints the foo.txt file.

To view the jobs waiting in the print queue, just type lpq at the command line. You can cancel jobs in the queue by typing lprm followed by the print job number. Get the job number from the print queue. Type lpq, and you will see information similar to this:

active root  389  foo.txt

In this example, 389 is the job number. To cancel this print job, you would type lprm 389 and press [Enter].


PrevHomeNext
Locating Files and DirectoriesUpClear and Reset the Window
 

 

 

 

Website promotion and ranking services | Active-Domain.com: Domain name registration | Cheap domain registrar 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: To take the difficulties, setback and sorrows of life as a challenge which to overcome makes us stronger rather than unjust punishment which should not happen to us requires faith and courage.