linux下怎么查看有那些内部命令

如题所述

linux命令有内部命令和外部命令之分。内部命令实际上是shell程序的一部分,其中包含的是一些比较简练的linux系统命令,这些命令由shell程序识别并在shell程序内部完成运行,通常在linux系统加载运行时shell就被加载并驻留在系统内存中。外部命令是linux系统中的实用程序部分,因为实用程序的功能通常都比较强大,所以它们包含的程序量也会很大,在系统加载时并不随系统一起被加载到内存中,而是在需要时才将其调进内存。通常外部命令的实体并不包含在shell中,但是其命令执行过程是由shell 程序控制的。shell程序管理外部命令执行的路径查找、加载存放,并控制命令的执行。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-03-10
可以直接到系统路径下看。
/bin/
/sbin/
/usr/bin/
/usr/sbin/
/usr/local/bin/
/usr/local/sbin/
常见的就这六个路径。(PATH的路径)
第2个回答  2017-03-10
我这边有rh-based跟mandriva的系统

man builtins

BASH_BUILTINS(1) BASH_BUILTINS(1)

NAME

bash, :, ., [, alias, bg, bind, break, builtin, cd,
command, compgen, complete, continue, declare, dirs, disown, echo,
enable, eval,

exec, exit, export, fc, fg, getopts, hash, help,
history, jobs, kill, let, local, logout, popd, printf,
pushd, pwd, read, readonly,

return, set, shift, shopt, source, suspend, test, times,
trap, type, typeset, ulimit, umask, unalias, unset, wait - bash
built-in com-

mands, see bash(1)
相似回答