Linux view commands are internal or external commands

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.