In Linux, printer commands are used to manage printers and print jobs, to control the printer daemon and queue, to set printer options, and to display printer information.
| Command | Description |
|---|---|
| lp | Using this command, print jobs will be sent to the printer. A number of options can be specified, such as the number of copies or the range of pages. |
| lpq | This command displays the print queue, showing the status of all jobs waiting to be printed. |
| lpr | This command is used to print files directly from the command line. You can specify options such as the printer name and the number of copies. |
| lprm | This command is used to remove print jobs from the print queue. You can specify a job number or use the - option to remove all jobs. |
| lpadmin | This command is used to manage printers and print queues. You can use it to add or remove printers, change printer settings, and manage print jobs. |
| lpinfo | This command displays information about available printers, including their names, descriptions, and capabilities. |
| lpmove | This command is used to move a print job from one printer to another. You can specify the job number and destination printer. |
| lprm | This command is used to remove print jobs from the print queue. |
| cancel | Similar to lprm, this command cancels print jobs in the queue. |
| lpc | This command is used to control the printer daemon and the print queue. |
| lpoptions | This command is used to set printer options, such as duplex printing and paper size. |
| lpstat | This command shows the status of the printer and the print queue. |
| cupsenable and cupsdisable | These commands enable and disable printers respectively in the Common UNIX Printing System (CUPS). |