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

Print a text file to the HH- 303 HPLJ M630

lpr -P lp3 file.txt


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
Add comment

You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links. Comments are moderated.