/bin,/sbin,/usr/sbin,/usr/bin Directory

Source: Internet
Author: User

/bin,/sbin,/usr/sbin,/usr/bin Directory

These directories are stored as commands, first distinguishing between/sbin and/bin:

From the command function, the commands under/sbin belong to basic system commands, such as Shutdown,reboot, which are used to start the system, repair the system,/bin to store some common basic commands, such as Ls,chmod, which are often used in the configuration file scripts in the Linux system.

From the point of view of user rights, commands under the/sbin directory are usually only available to administrators, and can be used by command administrators and general users under/bin.

From a running time perspective, the/sbin,/bin can be used before mounting other file systems.

The difference between the/usr/bin,/usr/sbin and the/sbin/bin directory is that:

The/bin,/sbin directory is mounted to the root file system after the system is booted, so the/sbin,/bin directory must be in the same partition as the root file system;

/usr/bin,usr/sbin can and the root file system are not in one partition.

Some non-mandatory system commands stored by/usr/sbin;/usr/bin store Some user commands, such as LEDs (which control LED lights).

Turn off a Netizen's interpretation, personally think the interpretation is in place:

/bin are some of the instructions of the system. 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.
/sbin is generally referred to as Superuser instructions . 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/bin is a running script for some of the software you install later. Some of the essential executable files for application software tools such as C + +, g++, GCC, Chdrv, diff, Dig, Du, eject, elm, free, gnome*, gzip, htpasswd, KFM, Ktop, last, less, Locale, M4, make, man, Mcopy, NcFTP, newaliases, nslookup passwd, quota, smb*, wget, etc.

/usr/sbinPlace some user-installed prerequisites for system administration such as: DHCPD, HTTPD, IMAP, IN.*D, inetd, LPD, named, Netconfig, NMBD, samba, sendmail, squid, swap, TCPD, Tcpdump and so on.
If the newly installed system, run some very normal such as: shutdown,fdisk command, blatant hint: Bash:command not found. So
The first thing to consider is whether these environment variables are already included in Root $path.
You can view PATH, if: path= $PATH: $HOME/bin need to be added as follows:
path= $PATH: $HOME/bin:/sbin:/usr/bin:/usr/sbin

/bin,/sbin,/usr/sbin,/usr/bin Directory

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.