Print a short description of each command specified in the argument list, or, if no argument is given, a list of the recognized commands.
abort Brq all | printer
Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr(1)) for the specified printers.
bottomq printer [jobspec ...]
Take the specified jobs in the order specified and move them to the bottom of the printer queue. Each jobspec can match multiple print jobs. The full description of a jobspec is given below.
clean Brq all | printer
Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine. This command will also look for core files in spool directory for each printer queue, and list any that are found. It will not remove any core files. See also the tclean command.
disable Brq all | printer
Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr(1).
down Bro all | printer ... Brc -msg message ... down Bro all | printer Brc message ...
Turn the specified printer queue off, disable printing and put message in the printer status file. When specifying more than one printer queue, the -msg argument is required to separate the list of printers from the text that will be the new status message. The message does not need to be quoted, the remaining arguments are treated like echo(1). This is normally used to take a printer down, and let other users find out why it is down (the lpq(1) utility will indicate that the printer is down and will print the status message).
enable Brq all | printer
Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue.
Exit from lpc.
restart Brq all | printer
Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly, leaving jobs in the queue. lpq(1) will report that there is no daemon present when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon).
setstatus Bro all | printer Brc -msg message ...
Set the status message for the specified printers. The -msg argument is required to separate the list of printers from the text that will be the new status message. This is normally used to change the status message when the printer queue is no longer active after printing has been disabled, and you want to change what users will see in the output of the lpq(1) utility.
start Brq all | printer
Enable printing and start a spooling daemon for the listed printers.
status Brq all | printer
Display the status of daemons and queues on the local machine.
stop Brq all | printer
Stop a spooling daemon after the current job completes and disable printing.
tclean Brq all | printer
This will do a test-run of the clean command. All the same checking is done, but the command will only print out messages saying what a similar clean command would do if the user typed it in. It will not remove any files. Note that the clean command is a privileged command, while the tclean command is not restricted.
topq printer [jobspec ...]
Take the specified jobs in the order specified and move them to the top of the printer queue. Each jobspec can match multiple print jobs. The full description of a jobspec is given below.
up Brq all | printer
Enable everything and start a new printer daemon. Undoes the effects of down.
Commands such as topq and bottomq can take one or more jobspec to specify which jobs the command should operate on. A jobspec can be:
a single job number, which will match all jobs in the printers queue which have the same job number. Eg: 17,
a range of job numbers, which will match all jobs with a number between the starting and ending job numbers, inclusive. Eg: 21-32,
a specific userid, which will match all jobs which were sent by that user. Eg: jones,
a host name, when prefixed by an @, which will match all jobs in the queue which were sent from the given host. Eg: @freebsd.org,
a job range and a userid, separated by a :, which will match all jobs which both match the job range and were sent by the specified user. Eg: jones:17 or 21-32:jones,
The values for userid and host name can also include pattern-matching characters, similar to the pattern matching done for filenames in most command shells. Note that if you enter a topq or bottomq command as parameters on the initial lpc command, then the shell will expand any pattern-matching characters that it can (based on what files in finds in the current directory) before lpc processes the command. In that case, any parameters which include pattern-matching characters should be enclosed in quotes, so that the shell will not try to expand them.