This section describes the features of each command and how to use them.
For information about the options that can be used and restrictions on combining options, see the following:
Print Option Combinations (lpr)
Print Option Combinations (cif)
lpr command
In the lpr command, you can specify a file of any data format that CUPS supports, such as PS, BMP, TIFF, or JPEG.
For details about the data formats that CUPS supports, see the homepage for the Common UNIX Printing System (http://www.cups.org/).
When you use the lpr command to print a file, enter the command as follows:
[user@zzz /yyyy]$ lpr -P MP490 [filename] {-o option}
![]() |
|
Example: Printing Sample.png in grayscale
[user@zzz /yyyy]$ lpr -P MP490 Sample.png -o CNGrayscale
Example: Printing Sample.png with A5 Page Size
[user@zzz /yyyy]$ lpr -P MP490 Sample.png -o PageSize=a5
Example: Printing Sample.png on a paper size of 150 x 150mm (Custom Paper Size)
[user@zzz /yyyy]$ lpr -P MP490 Sample.png -o PageSize=Custom.150x150mm
![]() |
For information on other restrictions of the lpr command, see "Usage Restrictions of the lpr and cngpij commands" in "Main Restrictions." |
cif command
To use the cif command, you must switch to other super user account using the su command.
When you use the cif command to print a file, enter the command as follows.
When the filename is omitted, the printer driver processes the data as being received from standard input only if the data is PPM.
[root@zzz /yyyy]# cifmp490 [filename] [option] > /dev/usb/lp0
![]() |
- TIFF: Uncompressed mode only - BMP: Only 8-bit per color RGB - PPM: Only 8-bit per color RGB (binary format) - PNG: 8-bit per color RGB/8-bit Gray/Index/8-bit per color α RGB/8-bit α Gray
|
![]() |
Enter the following command to display the version information, the instructions, the option lists, etc. |
Example: Printing Sample.png in grayscale
[root@zzz /yyyy]# cifmp490 Sample.png --grayscale > /dev/usb/lp0
Example: Printing Sample.png with A5 Page Size
[root@zzz /yyyy]# cifmp490 Sample.png --papersize a5 > /dev/usb/lp0
Example: Printing Sample.png on a paper size of 150 x 150mm (Custom Paper Size)
[root@zzz /yyyy]# cifmp490 Sample.png --papersize user --paperwidth 15000 --paperheight 15000 > /dev/usb/lp0