linux 中判断命令是内部命令还是外部命令

 

1、直接使用type命令进行判断

[root@localhost test]# type pwd      ## pwd是内部命令
pwd is a shell builtin
[root@localhost test]# type plink    ## plink是外部命令
plink is hashed (/home/software/plink/plink)

 

posted @ 2022-03-27 22:17  小鲨鱼2018  阅读(187)  评论(0编辑  收藏  举报