How to print using the command line from a shell in linux:
In the following examples filename.ps is the file you want to print.
"xeroxbw" is the printer name and could be any of:
ccm
color1
color2
statps
Set your default printer to xeroxbw using:
lpoptions -d xeroxbw
Print a file to the default printer but force one sided output using:
lpr -o Duplex=none filename.ps
Print a file to the default printer but force two sided output using:
lpr -o Duplex=Duplex filename.ps
or
lpr -o Duplex=DuplexNoTumble filename.ps
Make xeroxbw always print single sided for you using:
lpoptions -p xeroxbw -o Duplex=none
Now this will print single sided on xeroxbw:
lpr filename.ps
Make xeroxbw go back to using the default double-sided print using:
lpoptions -p xeroxbw -o Duplex=Duplex
Now this will print double sided on xeroxbw:
lpr filename.ps
Print to color1 printer with default options using:
lpr -P color1 filename.ps
for more help and examples type:
lynx /usr/share/doc/cups-1.1.22/sum.html
OR