The difference between bin and Sbin under Linux

Source: Internet
Author: User

/bin inside is generally the ordinary executable program, and/sbin in the System Management program and service program s should be the word system

the general role of each directory in Linux systemsRecord one: Linux each directory is actually a file, the following is the root directory of the low directory of the role of the summary: 1. Root file system (/)
  
The root file system contains almost all of the file directories. Equivalent to a central system. The simplest way to enter is: CD/
2./usr file system
  
The/usr file system contains the command library files and files that are not modified in the usual operation. The installation program is installed by default within a subfolder of this file. After entering the command, the system executes the program under/usr/bin by default.
  
3./var file system
  
The/var file system contains some frequently changed files. For example, spool (spool) directory file log directory? Lock file? Temporary files and formatted manual files.
  
4./Home File system
  
The/Home file system saves the user files (user's own profile, custom files, documents, data, etc.), except the root user.
  
5./proc File System
  
All virtual files are included in the/proc file system. They are not saved on disk or Occupy disk space (although command ls-c will show their size). When you look at them, you actually see the information in memory that helps us understand the information inside the system.
  
  
The following directories are primarily included in the root file system:
  
/bin: A command file that can be used by ordinary users.
  
/sbin: Commands that are generally used by non-ordinary users. Sometimes it can be used by ordinary users.
  
/etc: The configuration file for the system.
  
/root: The home directory of the system administrator (root or Superuser).
  
/dev: Device files. In Linux, the device appears as a file, so that it can be written in a simple way to write to the device.
  
/MNT: File system mount point. Typically used to install mobile media? Partitions of other file systems (such as DOS), network shared file systems, or any installable file system.
  
/lib: Shared library of all programs under the root directory.
  
Files used by/boot:lilo. The Linux kernel is typically placed under this directory. Of course, you can also set Lilo's configuration file to indicate to lilo the other paths to the kernel loading.
  
/OPT: You can choose to install a large application.
  
/tmp: Temporary files, files in this directory are automatically emptied by the system.
  
/lost+found: Files that are recovered during system repair are generally empty.
  
The following directories are mainly included in the/usr file system:
  
/usr/x11r6:x Window System.
  
/USR/X11: Equivalent to/USR/X11R6 (is a symbolic link to/usr/x11r6).
  
/usr/x11r6/bin: There are a large number of X window widgets, or symbolic links to some large applications.
  
/usr/bin and/usr/sbin: equivalent to the directory under the root file system, but not required during basic system bootstrap (for example, in emergency maintenance).
  
/usr/local: Installs the local user application, for example, Netscape (each user in a separate directory).
  
/usr/local/bin: It could be some small user application or a symbolic link to a large application in the/usr/local subdirectory.

The difference between bin and Sbin under Linux

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.