Differences between Linux/bin,/sbin,/usr/bin,/usr/sbin

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.