我们一直通过命令在shell中执行程序或者漫游系统。那么到底命令是什么呢?《TLCL》里面总结了。
shell命令总的来说是下面四种形式之一:
An executable program like all those files we saw in /usr/bin. Within this category, programs can be compiled binaries such as programs written in C and C++, or programs written in scripting languages such as the shell, perl, python, ruby, etc.
A command built into the shell itself. bash supports a number of commands internally called shell builtins. The cd command, for example, is a shell builtin.
A shell function. These are miniature shell scripts incorporated into the environment.
An alias. Commands that we can define ourselves, built from other commands.