Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
System administration command. Control a line printer's device parameters. Without options, print information about device(s).
Options
-a [on|off]
Specify whether or not to abort if the printer encounters an error. By default, do not abort.
-cn
Retry device n times if it refuses a character. (Default is 250.) After exhausting n, sleep before retrying.
-iirq
Use irq for specified parallel port. Ignore -t and -c. If 0, restore noninterrupt-driven (polling) action.
-o [on|off]
Specify whether to abort if device is not online or is out of paper.
-q [on|off]
Specify whether to print current IRQ setting.
-r
Reset port.
-s
Display printer's current status.
-ttime
Specify a delay of time in jiffies to sleep before resending a refused character to the device. A jiffy is defined as either one tick of the system clock or one AC cycle time; it should be approximately 1/100 of a second.
-T [on|off]
Tell the lp driver whether it can trust the IRQ. Useful only if using with interrupts, to handle IRQ printing efficiently. Requires at least Linux 2.1.131.
-wtime
Specify a delay of time in jiffies to sleep before resending a strobe signal.