Home  >  Article  >  Operation and Maintenance  >  Where are the linux commands?

Where are the linux commands?

angryTom
angryTomOriginal
2019-11-04 16:45:205485browse

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!

Statement:
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
Previous article:What file is linux greenNext article:What file is linux green