Linux system, everything is a file.
Linux directory structure in accordance with FHS (Filesystem Hierarchy Standard), and all are based on the root "/" Start down the tree.
Log on Linux systems running "ls -l" you can see the following directory structure
By "tree / -L 2" to display the directory structure of the tree
Each directory as follows:
/ Boot: some of the core files due to start Linux system, namely the system boot partition
/ Bin: basic commands used by ordinary users
/ Sbin: Management of basic commands
/ Home: the user's home directory, in general, it is a user named. And the user of the same name created by default in this directory when creating the user's directory as the current user's home directory
/ Etc: Configuration Files directory
/ Dev: device special file path and file storage
/ Mnt: Temporary file system mount points
/ Root: the system administrator's home directory
/ lib: When you start the program depends on the basic shared libraries and kernel module files (/ lib / modules)
/ lib64: dedicated to the auxiliary systems on x86_64 shared library file location
/ Media: a portable mobile device mount point
/ Opt: third-party applications stored position
Storage path services running on the system: / srv
/ Tmp: temporary file storage directory
/ proc: for the output of the core and process information related to the virtual file system
/ sys: for output on the system hardware information about current virtual file system
/usr(Unix Software Resource):
bin: to ensure the system fully functional and provide application
sbin:
lib: 32 bit using
lib64: there is only 64-bit system
include: C program header files (Files header)
Share: independent structured data, e.g. doc, man and other
local: installation location of the third party application
bin, sbin, lib, lib64, etc, share
Stored data changes: / var
cache: caching application data directory
lib: application state information data
local: dedicated to storing variable data for the application under / usr / local;
Lock: lock file
log: log files and directories
opt: dedicated, / I opt under the application store variable data;
rUN: running processes related data, typically used to store process pid file
spool: application data pool
temporary data generated between the two to save the system restart: tmp
Linux system using the "cd" command to change directory, change directory can use relative and absolute paths
Relative path: do not start with a slash
is specified relative to the current working directory or a directory location
can specify a file name as a short form
Absolute path: with a forward slash start
position full path of the file
can be used whenever you want to specify a file name
Linux systems can use the "ls" command to view the files in the current directory, Linux file types are as follows: