First, the system directory structure
To build a directory tree structure:
Tree-a Show All
Tree-d Show only Directories
Tree-l n N Represents the number: Indicates how many layers to display ...
TREE-F Displays the full path:
Yum install-y Tree
Tree--hep
Mans Tree
Second, ls command
List Full Write
LS Shorthand
LS/Displays the non-shadow files and directories in the current directory
Related directives:
ls/bin/
ls/sbin/
ls/boot/
Ldd/bin/ls
Ls/lib Library file
Ls/lib64
ls/proc/Process LS/PROC/1
ls/usr/
Ls/usr/lib/usr/lib64
Ls/war/log/messages
ls/var/run/
ls/usr/bin/usr/sbin/bin//sbin//etc//var//usr/local//proc/
Iii. Types of files
LS directory: Specifies the directory to display the list, or it can be a specific file
LS-A displays a list of all files, including shadow files, in the current directory
Ls-l Output Long Format list
ls-i-L display inode information for a file
The index node (the index inode is referred to as "Inode") is a special concept in Linux, and two text with the same index node number is essentially the same file (except for the file name).
Ls-la is to list all files and directories in the current directory, including hidden files and directories
Ls-l/bin/ls compiled files cannot be viewed
Ls-l/dev/log Communication S opening file
D: Catalogue
-: Normal document, binary
C: String
B: Block device (Optical drive, CD-ROM)
S:socket file
L: Then link file
Iv. alias Command
Alias to see if the command has an alias
Example: Aliases for davery: Alias davery= ' LS-LHB '
Alias: Unalias Davery
The which command is to find out if a command exists, and where the command is stored
Share Linux CentOS7 VMware system directory structure, ls command, file type, alias command--notes