A little every day Linux-01 file system

Windows: a plurality of ways to organize documents C: D: E:
Linux: a single way of organizing documents /

/ Directory structure: FSH (Filesystem Hierarchy Standard)

[root@yang ~]# ls /
bin     dev   lib          media  net   root     srv  usr
boot    etc   lib64       misc   opt   sbin     sys  var
cgroup  home  lost+found  mnt    proc  selinux  tmp

BASH Shell to use document management

  • bin binary documents, storing the documentation that Linux commands for common operations
  • dev directory device
  • home equivalent user documentation in windows c drive folder
  • lib64 64 of the document library
  • media media files
  • mnt directory peripherals (insert u disk hard drive)
  • opt third-party software installation directory (install qq, etc.)
  • root root user's home
  • usr directory users to share (equivalent to Program Files windows in c drive, built-in software systems are installed in this document folder)
  • boot kernel boot directory
  • etc configuration files directory
  • lib library directory
  • lost + found directory is missing
  • sbin directories super administrator
  • tmp temporary directory (will be cleared after the restart)
  • var directory large column variable   bit Linux-01 file system every day g>
  • proc virtual file system, the reaction out of the kernel, or process information in real-time status
  • selinux Linux Security

Mount meaning is to associate a device up to a directory, the directory can also be very deep shallow. A disk can be mounted to the next multiple directories.

Linux is a single structure, windows is more than one root structure.

How to determine the documents stored in the disk:

  • For example, create a new document: / boot / dirl / file1
  1. First check the father of this document (/ boot / dirl /) whether the mount point (mount point information can be viewed by df command), that is, the document if it is occupied by his father mount point file system corresponding to the (equipment) space . If this is not the second part.
  2. Continue to push up a layer that is / boot whether the mount point is then compared to find documentation system (equipment), if not continue to push up until that date (until the root directory / ).

Tip enough space when you create a document into the document in the root, but the root you find plenty of space, errors may be because the directory is mounted and the root of the device to mount different devices.

Mount the original recorded data will be covered, so the general will choose an empty directory to mount.

Guess you like

Origin www.cnblogs.com/lijianming180/p/12014304.html