• 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. CentOS / RHEL : How to remove a mirror with mdadm
  2. hostname Command Examples in Linux
  3. How to schedule Jobs with Cron in Linux
  4. CentOS / RHEL 7 : How to create an Network Bonding (NIC teaming) using nmcli
  5. CentOS / RHEL : Beginners guide to cron
  6. Configuring Remote Logging using rsyslog in CentOS/RHEL
  7. dpkg-reconfigure Command Options
  8. Archiving Failures with ORA-16038, ORA-19504, ORA-00312
  9. ttyrec – Record Terminal Session in Linux
  10. pvchange Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright