In Linux, how do you see if a command is an internal or external command? The following will be introduced to you.
First, the difference:
1, internal command in the system when the boot into the memory, is resident memory, so the implementation of high efficiency.
2, external command is the software function of the system, the user needs to read into the memory from the hard disk.
Second, how to judge.
Enter a type in the terminal to see whether the command is an internal command or an external command. The format is:
Type the command to view
For example, to see if the CD command is an internal command, you can type a CD. As you can see from the returned results, the CD is an internal command.
$type CD
CD is a shell builtin---this is an internal command for the shell built-in
$Type shutdown
shutdown Is/sbin/shutdown There is an executable file corresponding to the command name under a path in the file system
Linux view commands are internal or external commands