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.
|