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

Source: Internet
Author: User

The directory of four applications that we often use under Linux is:/bin,/sbin,/usr/bin,/usr/sbin Bin:The bin for binary shorthand mainly places some of the system's necessary execution files such as: Cat, CP, chmod DF, DMESG, gzip, kill, LS, mkdir, more, Mount, RM, Su, tar, etc. /usr/bin:Some of the key applications for application tools include 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:There are some prerequisites 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 and so on. /usr/sbin: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.

/: This is root directory

/bin:commands in this dir is all system installed user commands

/sbin:commands in this dir is 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: is a system of some instructions.

/sbin: Generally referred to as Superuser instructions.

/usr/bin: You are running scripts for some of the software that you install later.

Overview:If it is a user and administrator necessary binaries, it will be placed in the/bin, if it is necessary for the system administrator, but the average user does not use the binary files, will be placed in the/sbin. If it is not a user-required binary, it will probably be placed in/usr/bin, if not the system administrator must have tools, such as network management commands, will probably be placed in/usr/sbin.

Reference recommendation:

/bin,/sbin,/usr/bin,/usr/sbin directory differences

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

Transferred from: http://blog.csdn.net/ithomer/article/details/9839957

Linux/bin,/sbin,/usr/bin,/usr/sbin difference (EXT)

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.