In Linux, the following four application directories are commonly used:/bin,/sbin,/usr/bin,/usr/sbin
Bin:The short description of "bin" as "binary" mainly places some necessary execution files of the system, for example: cat, CP, chmod DF, dmesg, Gzip, kill, ls, mkdir, more, mount, RM, Su, tar, etc.
/Usr/bin:It mainly stores necessary execution files for 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 *, and wget.
/Sbin:It mainly places some necessary procedures for system management, such: cfdisk, dhcpcd, dump, e2fsck, fdisk, halt, ifconfig, IFUP, ifdown, init, insmod, Lilo, lsmod, mke2fs, modprobe, quotacheck, reboot, rmmod, runlevel and Shutdown.
/Usr/sbin:Place some necessary processes for network management, such as DHCPD, httpd, IMAP, and in. * D, inetd, lpd, named, netconfig, nmbd, Samba, Sendmail, squid, swap, tcpd, and tcpdump
/: 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: Some commands of the system.
/Sbin: generally refers to superuser commands.
/Usr/bin: The running script of some software you install later.
Summary:Binary files that are essential to users and administrators are stored in/bin. binary files that are not commonly used by users are stored in/sbin. If it is not a required binary file, it is mostly stored in/usr/bin. If it is not a required tool for the system administrator, such as a network management command, it is mostly stored in/usr/sbin.
Reference recommendations:
/Bin,/sbin,/usr/bin,/usr/sbin directory differences
Linux/etc/profile ,~ /. Execution Process of several files such as bash_profile