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