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.
Note
$ lpr -p [printer name] [file name] -o [keyword]=[parameter]
The method for starting the console differs according to the operating system/distribution used.
Example: From the printer called LBP3200, print the file sample.ps:
$ lpr -P LBP3200 sample.ps
Note