Thursday | 21 NOV 2024
[ previous ]
[ next ]

Linux Printer Commands

Title:
Date: 2023-05-08
Tags:  linux, printers, sysadmin

Sending a print job:

lp -d printer6 file.txt

See the status of a printer:

lpstat -p printer6
lpstate -l

Adding a remote printer:

lpadmin -p printer6 -v ipp://192.168.7.31/printers/PRINTER_NAME

Adding a remote printer:

lpadmin -p printer6 -v lpd://192.168.7.31/pr

Enable a printer:

cupsenable printer6

Accept jobs on a printer:

accept printer6

Remove a printer:

lpadmin -x printer6