How To Configure Printer In Linux Through Command Line?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Ensure that the printer is connected to the system and is powered on.
2. Install the printer driver on the system. Most Linux distributions come with printer drivers installed, but if not, you may have to manually install the driver.
3. Open a terminal window and type the following command to view a list of available printers: lpstat -a.
4. To set a printer as the default, type: lpoptions -d printer_name.
5. To print a test page, type: lpr -P printer_name testpage.
6. To check the status of a print job, type: lpq -P printer_name.
7. To cancel a print job, type: lprm -P printer_name job_ID.
8. To configure the printer, use the printer’s setup command, such as hp-setup for HP printers or cups-setup for CUPS printers.