Solaris Transition Guide

Using Printer Commands

As discussed in a previous section, you can continue to use SunOS release 4 print commands if you have the SunOS/BSD Source Compatibility Package. Table 11-1 shows the basic user print command equivalents.

Table 11-1 User Print Command Equivalents

SunOS release 4 

SunOS release 5.7 

Function 

lpr filename

 

lp filename

Print a file to the default printer 

lpr -P printer filename

lp -d printer file

Print a file to a specific printer 

lpq

lpstat -o printer

Look at a list of the files waiting to print on the default printer 

Check /etc/printcap

lpstat -d

Determine which is the default printer 

Check /etc/printcap

 

lpstat -a

Determine which printers are available 

lprm jobnumber

 

cancel jobid

 

Cancel a print job on the default printer