day4 system directory structure

Linux system directory structure:
all the directories logically only one vertex / (root), the starting point for all directories.
Root following a similar upside down like a tree hierarchy. (Only one tree)
In Linux mount manner by associating the storage space is formed directly or indirectly to the root tree
partition directory no contact
Command on disk partitions and mounted (/ etc / fstab-- boot automatically mount)
   df -h Check disk mounts case
  [dd if = / dev / zero of = / root / image bs = 1024 // create a loopback device (virtual disk)]
  fdisk [disk] file - disk partition:
  SD - scsi type of disk (hd IDE)
  A-- first disk (b, c ...)
  1-- first partition
  mkfs- - format (create a file system)
  mount-- disk mount
  umount-- disk unloaded

Linux standard FHS directory hierarchy
defines two specifications
of each layer of a first directory "/" directory what documents should be placed
, for example: / etc directory system configuration files to prevent
the second layer for the / usr and / var two directories defined subdirectory
example: placing the file system log / var / log, etc.
Linux main directory
 / bin-- store command files
 / boot-- boot file storage system (kernel, grub program)
 / cdrom-- disc directory
 / dev-- storage device file (c character device, d block device)
 / etc-- most of the system configuration file
 / home-- ordinary user's home directory
 / lib / lib64 - libraries
 / lost + found fragmented files under abnormal shutdown (empty disk mount up, there will be the default directory)
 / mnt / media - dedicated to mount mount point
 / opt-- third-party software installation directory
 / proc / sys process, the system directory (the default is empty, the corresponding store will only start the process and system files
 / root - root the user's home directory
 / sbin-- store command directory
 / tmp-- temporary file storage directory
 / usr-- common software installation directory
 directory / var-- document is subject to change
 
Summary:
1) all the Linux directory tree structure is a hierarchical directory structure of the upside down
2) root "/" is the culmination of all directories,
3) and partition the directory structure is not related to equipment, different directories across different disk or partition
4) all directories are in accordance with certain categories of regular organization and named.

Relative and absolute paths:
Absolute: absolute path from the root cd / data /
relative: starting from the root are not relative path cd data / cd ..
 
 
 
 

Guess you like

Origin www.cnblogs.com/lgf333/p/11290916.html