Linux/bin,/sbin,/usr/bin,/usr/sbin difference __linux

Source: Internet
Author: User
Java EE Development of various types of resources download list, the history of the most complete IT resources, personal collection summary.
The directory of the four applications we use frequently in Linux is:/bin,/sbin,/usr/bin,/usr/sbin
Bin:Bin for the binary of the main place some of the system required to implement files such as: Cat, CP, chmod DF, DMESG, gzip, kill, LS, mkdir, more, Mount, RM, Su, tar and so on.

/usr/bin:Prerequisites for the main placement of application 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:Some of the main prerequisites for system administration include: Cfdisk, DHCPCD, Dump, E2FSCK, Fdisk, Halt, Ifconfig, Ifup, Ifdown, Init, Insmod, Lilo, Lsmod, MKE2FS, Modprobe, Quotacheck, reboot, Rmmod, runlevel, shutdown, etc.

/usr/sbin:Some of the prerequisites for placing network management are: 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: It's some of the system's instructions.

/sbin: Generally refers to the super user instructions.

/usr/bin: You are running scripts for some software that you install later.
Summary: If it is a necessary binary file for users and administrators, it will be placed in the/bin; if it is a prerequisite for a system administrator, a binary file that is not used by the average user will be placed in/sbin. If it is not a user-required binary, most of the/usr/bin will be placed in the/usr/sbin, if not the system administrator's necessary tools, such as network management commands.



Reference recommendation:

Differences in/bin,/sbin,/usr/bin,/usr/sbin directories

Linux/etc/profile, ~/.bash_profile and so on several files of the implementation process

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.