File system
1. File system partition structure is divided into Inode group and data domain
The 2.linux file is divided into directories and binary files
3. Catalog items are stored in the directory, and the directory entry records the file name and IndexID, each indexid corresponds to a meta-data structure in the Inode group.
4. The metadata structure contains the permissions, type, size, pointers and other data, through the pointer can find the location of the binary file
Ls:list File Information
Ls
-A lists all files
-L Detailed information
-I list IndexID
Diff:different differences of two files
Diff Test.java Testcopy.java
If there is no output that indicates that two files are consistent in content
Cp:copy
Copy location/file name Location---copying files
Copy share/share2-r---Iteration replication directory
Rm:remove
RM location/File name---Delete file
RM location/-R---iteration delete
Note that, in fact, the deletion does not clear the binaries, only the directory entries in the directory are deleted, and the Inode group is marked as idle in the particular ID.
Mv:move | Rename
MV Location/File location---moving files
MV File New FileName---Rename
Aided
Alias L = ' ls-l '---aliases
Linux Series: Shell script programming