Where are the linux commands?

angryTom
Release: 2019-11-04 16:45:20
Original
5544 people have browsed it

Where are the linux commands?

Where are the linux commands?

Linux commands are mainly stored in the following six folders:

1、/bin

2、/sbin

3、/usr/bin

4、/usr/sbin

5、/usr/local/bin

6 ,/usr/local/sbin

To specifically find the location of a certain command, you can use "whereis command name" to view it.

The difference between them:

1. The difference between /bin and /sbin

/bin: Stores system programs available to all users , that is, ordinary basic commands, such as: cat, ls, chmod, etc.

/sbin: Stores system programs that can only be used by super users, that is, basic system commands, such as: shutdown, reboot, etc.

2. The difference between /usr/bin and /usr/sbin

/usr/bin: Stores applications that are available to all users , usually a running script for installed software, such as: free, make, wget, etc.

/usr/sbin: Stores applications that can only be used by super users, generally related to server software program commands, such as: dhcpd, httpd, samba, etc.

3. The difference between /usr/local/bin and /usr/local/sbin

/usr/local/bin: Stores the local and local files available to all users Machine-independent programs, that is, third-party software programs

/usr/local/sbin: Stores programs that are independent of the local machine and can only be used by super users, that is, third-party software programs

Recommended: linux basic tutorial

The above is the detailed content of Where are the linux commands?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!