This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11891|Reply: 1

[linux] The difference between /bin, /sbin, /usr/bin, /usr/sbin directory under Linux

[Copy link]
Posted on 11/30/2018 2:25:27 PM | | |
The directories of the four applications we often use under Linux are /bin, /sbin, /usr/bin, and /usr/sbin. The documents stored by the four are generally as follows:
  
bin directory:Bin is the abbreviation of binary, which mainly places the necessary executable files of some systems, such as: cat, cp, chmod df, dmesg, gzip, kill, ls, mkdir, more, mount, rm, su, tar, etc.

/usr/bin目录:
It mainly places the necessary executable files of some application software tools, such as C++, G++, gcc, chdrv, diff, dig, du, eject, elm, free, gnome*, zip, htpasswd, kfm, ktop, last, less, locale, m4, make, man, mcopy, ncftp, newaliases, nslookup passwd, quota , smb*, wget, etc.

/sbin目录:
It mainly places some essential programs for system management, such as: cfdisk, dhcpcd, dump, e2fsck, fdisk, halt, ifconfig, ifup, ifdown, init, insmod, lilo, lsmod, mke2fs, modprobe, quotacheck, reboot, rmmod, runlevel, shutdown, etc.
     
/usr/sbin目录:
Place some essential programs for network management, such as: dhcpd, httpd, imap, in.*d, inetd, lpd, named, netconfig, nmbd, samba, sendmail, squid, swap, tcpd, tcpdump, etc

Summary:
If this is a binary required for users and administrators, it will be placed in /bin. If this is a binary that is required for system administrators but is not used by ordinary users at all, it will be placed in /sbin.
Relatively speaking. If it is not a user-required binary, it will most likely be placed in /usr/bin; If it is not a must-have tool for system administrators, it will most likely be placed in /usr/sbin.




Previous:CentOS 7 Installation NodeJS Tutorial
Next:The 39th level of the Python version of the Frontier Forest of Geek Wars
Posted on 11/30/2018 2:26:15 PM |
learned
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com