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

What are the differences between / bin, / sbin, / usr/bin, / usr/sbin in Linux

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

Share

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

This article will explain in detail the differences between/bin, /sbin, /usr/bin,/usr/sbin in Linux. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.

The four application directories we use most often under linux are: /bin,/sbin,/usr/bin,/usr/sbin

bin:

bin is the abbreviation of binary, which mainly places some necessary execution files of the system, such as cat, cp, chmod df, dmesg, gzip, kill, ls, mkdir, more, mount, rm, su, tar, etc.

/usr/bin:

The main place some application software tools necessary execution files such as c++, g++, gcc, chdrv, diff, dig, du, reject, elm, free, gnome*, zip, htpasswd, kfm, ktop, last, less, locale, m4, make, man, mcopy, ncftp, nealiases, nslookup passwd, quota, smb*, wget, etc.

/sbin:

The main place some system management necessary procedures such as:cfdisk, dhcpcd, dump, e2fsck, fdisk, half, ifconfig, ifup, ifdown, init, insmod, lilo, lsmod, mke2fs, modprobe, quotacheck, reboot, rmmod, runlevel, shutdown and so on.

/usr/sbin:

Put in some network management prerequisites such as dhcpd, httpd, imap, in.* d, inetd, lpd, named, netconfig, nmbd, samba, sendmail, squid, swap, tcpd, tcpdump, etc.

/ : this is root directory

/bin : commands in this dir are all system installed user commands

/sbin: commands in this dir are all system installed super user commands

/usr/bin: user commands for applications

/usr/sbin: super user commands for applications

/usr/local/bin : application user commands

/usr/local/sbin: application super user commands

/bin: are some instructions for the system.

/sbin: Generally refers to the super-user command.

/usr/bin: is a script for running some software that you install later.

Summary:

If it is a binary file required by users and administrators, it will be placed in/bin;

Binary files that are required by system administrators but not used by the average user are placed in/sbin.

If it is not a binary file required by the user, it will probably be placed in/usr/bin;

If it is not a necessary tool for system administrators, such as network administration commands, most will be placed in/usr/sbin.

About "Linux/bin, /sbin, /usr/bin, /usr/sbin what are the differences" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

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