Linux Command type

Source: Internet
Author: User

Linux Command type

1. Linux built-in commands: commands provided by shell programs. The most common Commands include cd and pwd.

You can use the type command to view which command belongs, for example:

# Type cd

Cd is a shell builtin ----> if you see this prompt, it indicates that this command is a built-in command.

2. Linux External commands: they are an independent executable program file. The command name is the program file name. Common Commands include ls, mv, and ps.

Search Method: Use the PATH specified in the built-in environment variable PATH of shell to search;

# Echo $ PATH

/Usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin: /root/binPATH

Use which to view the path of the command, for example:

# Which ps

/Bin/ps ----> indicates that this command is in the bin directory.

This article permanently updates the link address:

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.