3. Printing Methods

Printing from the Command Line

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

1

Start the console.

The method for starting the console differs according to the operating system/distribution used.

2

Enter the lpr/lp command as follows.

E.g.: From the printer called iR105+, print the file sample.ps:

$ lpr -P iR105+ sample.ps

Note

  • Specify printer options (option) and parameters (value) after -o (option) as "option name = value".
  • If the printer name is omitted, the default printer will be used.
  • Supported print options, parameters, and combinations thereof differ according to the type of printer used.
  • If no options are specified or there is an error in a specified option, the option is ignored and print processing is executed using the default options and settings.
< Previous / Next >