≡ Menu

-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
Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 1 comment… add one }

  • william April 23, 2015, 1:13 pm

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

Leave a Comment