-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:

enable is a shell builtin
enable is /usr/bin/enable

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts