Printing from the Command Line

Here are some examples to illustrate the use of the lp commands.

Print a Postscript file to the HH-403 HPLJ P3015

lpr -P lj2 file.ps

Print a text file to the HH- 303 HPLJ M630

lpr -P lp3 file.txt

     OR

enscript -2 -d lp3 file.txt

Print an Adobe Acrobat file to the HH-403 HPLJ P3015, printing only on one side of the page

lpr -P lp2 -o sides=one-sided file.pdf

Check the status of the print queue for the HH-403 HPLJ P3015

lpq -P lp2