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

Source: Internet
Author: User

Linux/bin,/sbin,/usr/bin,/usr/sbin is different from the following four application directories in linux: /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: it is some system commands. /sbin: generally refers to superuser commands. /usr/bin: The running script of some software you install later.
Summary:
If it is a required binary file for the user and administrator, It will be placed in/bin;
If it is required by the system administrator, binary files that are not commonly used by users are stored in/sbin.
If it is not a required binary file, it will mostly be stored in/usr/bin;
If it is not a necessary tool for the system administrator, such as a network management command, it is usually stored in/usr/sbin.

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.