In the command line mode, various printer driver parameters can be specified
from the command line without using the GUI. If you want to print a file
directly from the command line, use the following lpr command.
$ lpr -P [Printer Name] [File Name]
Note
The method for starting the console differs according to the operating system/distribution used.
E.g.: From the printer called iR105+, print the file sample.ps:
$ lpr -P iR105+ sample.ps
Note