Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Where is the exact location of the linux command?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Where is the exact location of the linux command? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

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 find a specific command location, you can use the "whereis command name" to see.

The difference between them:

The difference between 1./bin and / sbin

/ bin: stores system programs that are 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 superusers, that is, basic system commands, such as shutdown,reboot, etc.

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

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

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

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

/ usr/local/bin: stores programs that are not related to the local machine that are available to all users, that is, third-party software programs

/ usr/local/sbin: stores programs that have nothing to do with the local machine that can only be used by superusers, that is, third-party software programs

The answer to the question about the specific location of the linux command is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report