Controlling the Printers

The lpc command is used to control printers and print queues connected to the server. Note that only the root user (with certain exceptions covered later on) can access most of the lpc functions. lpc is used to disable print queues, enable print queues, reset printers, check the status of print queues, and change the order of the jobs in the queue.

There are two ways that you can start lpc. The first is with the name of a command as a command line argument. If you start lpc this way, the given command will be run, and lpc will exit. See the man page for lpc for details on the commands that can be given from the command line.

The second way that lpc can be started is in interactive mode. If you start it with no command ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.