-bash: enable: PrinterName: not a shell builtin Error and Solution

Q. When I type the following command under CentOS 4.x / Fedora Linux:
enable hplj2
I see the error message:
-bash: enable: hplj2: not a shell builtin
How do I fix this error?

A. There are multiple versions of the enable command. One built in to the shell, and one in /usr/bin/enable. You need to use full path to /usr/bin/enable to avoid this error:
# /usr/bin/enable hplj2
The following command print out list of internal and external command. It also indicates how it would be interpreted if used as a command name
$ type -a enable
Output:

ADVERTISEMENTS

enable is a shell builtin
enable is /usr/bin/enable
🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • william Apr 23, 2015 @ 13:13

    was the same under Suse 11.3 :-) this post saved me me some time!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.