Solaris Transition Guide

Using SunOS Release 5.7 Printer Administration Commands

This section describes differences between printer setup and administration on SunOS release 4 and Solaris 7 systems. All the underlying system services described are available only in the Solaris 7 operating environment. The SunOS release 4 counterparts are not available even in compatibility mode.

You must use the System V printer administration commands lpadmin(1M) and lpsystem(1M) , the terminfo database, and the configuration files in the /etc/lp directory. See System Administration Guide, Volume II for details.

Table 11-2 shows the command equivalents for setting up printing.

Table 11-2 Printer Administration, Setup, and File Equivalents

SunOS release 4 

SunOS release 5.7 




Control line printer functions 


terminfo database and


File that defines printer functions 




Directory where printing system stores spool and lock files 

Not available 


Move print queues between printers 

lpc down


Stop queueing to a printer 

Printing troff

In the SunOS release 4 software, you need the following command to send a troff file to the default printer.

% troff filename

In the Solaris 7 operating environment, you must specify that you want the file printed by piping (|) the output to the lp command. Table 11-3 shows the SunOS release 5.7 troff commands.

Table 11-3 SunOS release 5.7 troff Commands

SunOS release 5.7 Command  


troff file | /usr/lib/lp/postscript/dpost|lp

Sends to default printer that supports troff jobs 

troff file| /usr/lib/lp/postscript/dpost|lp -d printer

Sends to a particular printer 

troff file | lp-Ttroff

Sends to any printer that supports troff jobs