• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Remove Network Printer in CentOS/RHEL

by admin

This post explains the steps to remove network printers on a Linux Server.

1. Verify if Printer exists:

# lpstat -p

2. Modify /etc/hosts and remove printer details:

# vi /etc/hosts

3. Remove printer in the server:

# sudo lpadmin -x [printer name]

4. Verify if printer has been successfully removed:

# lpstat -p | grep [printer name]

or

# ping [printer name]
Note: Do not modify /etc/cups/printers.conf configuration file directly. Use the lpadmin command to add or remove printers.
How to Add Network Printer via Command Line in CentOS/RHEL

Filed Under: CentOS/RHEL, CentOS/RHEL 6, CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. dig Command Examples in Linux
  2. How to Map Static IP to your Domain (with GoDaddy example)
  3. grub-install Command Options
  4. Unable to Start RDMA Services on CentOS/RHEL 7
  5. How to Force ASM to Scan the Multipathed Device First using ASMLIB/oracleasm
  6. “kernel: INFO: task {PROCESS}:{PID} blocked for more than 120 seconds.” – CentOS/RHEL Troubleshooting
  7. balooctl Command Examples in Linux
  8. binwalk: command not found
  9. Beginners Guide to Automounting File Systems in CentOS / RHEL
  10. How to truncate /var/log/lastlog File

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright