예를 들면 다음과 같습니다.
$ node
-bash: /usr/local/bin/node: No such file or directory
$ foo
-bash: foo: command not found
차이점이 뭐야? 두 경우 모두, node및 foo유효하지 않은 명령은, 그러나 찾을 수 없습니다 단지 유닉스처럼 보인다 node바이너리를? 예를 들어 프로그램을 제거 할 때 node이를 정리할 수있는 방법이 있습니까?
$ node
-bash: node: command not found
편집하다:
type명령 결과 :
$ type node
node is hashed (/usr/local/bin/node)
$ type foo
-bash: type: foo: not found
@EricRenouf, 알았어.
—
gwg 2016 년
아마도 'node'는 / usr / bin / node-> / usr / local / bin / node의 심볼릭 링크이고 후자는 사용할 수 없으므로 오류가 발생하여 / usr / local / bin / node가 삭제되었음을 나타냅니다. 심볼릭 링크가 작성된 후
—
likewhoa 2016 년
type node와type foo(아마도 첫 번째 정말 유용하지만).