For example:
$ node
-bash: /usr/local/bin/node: No such file or directory
$ foo
-bash: foo: command not found
What's the difference? In both cases, node
and foo
are invalid commands, but it seems like Unix just can't find the node
binary? When uninstalling a program, e.g. node
, is there a way to clean this up so that I get
$ node
-bash: node: command not found
EDIT:
Results from type
command:
$ type node
node is hashed (/usr/local/bin/node)
$ type foo
-bash: type: foo: not found
type node
andtype foo
(though probably only the first really is helpful).