회답到底是內建指令還是外部程式?
在 들이치다中提供有 타입指令, 可以告訴你究竟某個指令是 껍데기內建還是外部程式, 例如:
$ type type
type is a shell builtin
$ type echo
echo is a shell builtin
$ type cat
cat is /bin/cat
$ which echo
/bin/echo
$ /bin/echo "hello"
hello
$ type -a echo
echo is a shell builtin
echo is /bin/echo
如果你真的對執行到外部程式很感冒, 也可以在同時有內建指令與同名的外部程式時使用 내장했어指令強制執行內建的指令, 例如:
$ builtin echo "hello"
hello
$ builtin cat .profile
bash: builtin: cat: not a shell builtin
如果想知道到底 들이치다有哪些內建的指令, 可以參考 Bash Builtin Commands .
Reference
이 문제에 관하여(회답到底是內建指令還是外部程式?), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/codemee/echo-4a3m텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)