1.DUMPE2FS [-BH] Appliance file name: Query Superblock and blockgroup information, parameters:
1)-B: Lists the sections reserved for bad tracks
2)-H: List only superblock data
2.EXT2 file system when creating a new directory, the directory is assigned an inode with at least one block. The Inode records the relevant permissions and attributes of the directory, and can record the block number assigned to it, while the block is the inode number data that is recorded in the directory and the file name. You can use Ls–li to list the Inode node numbers for this directory
3.E2FSCK: for disk repair.
4.DF [-ahikhtm][directory or filename]: Lists the overall disk usage of the file system, parameters:
1)-A: List all file systems, including system-specific/proc and other file systems
2)-H: Self-display in gbytes,mbytes,kbytes and other formats that are easier to read by humans
3)-I: No hard disk capacity, but the number of inode to display
4)-K: Display each file system in Kbytes capacity
5)-H: Display with m=1000k instead of m=1024k
6)-T: Along with Partion's filesystem name (e.g., ext3) also listed
7)-M: Display file system in MBytes capacity
This command is done by searching superblock to get the information needed, so it's faster.
5.du [-ahskm] File or directory name: Evaluate the disk usage of the filesystem (commonly used in the estimated capacity of the catalog), parameters,
1)-A: Lists all files and directories, by default only the directory capacity under the statistics directory
2)-H: Displayed in people's more readable capacity (g/m)
3)-S: Lists the total, not the capacity of individual directories
4)-S: Does not include the statistics under the subdirectory, and the-s difference, generally smaller than-S.
5)-K: List capacity Display in Kbytes
6)-M: list capacity display in MBytes
Du this command will go directly to the file system to search for the required file data.
6.LN [-SF] Source file destination file: Create link file, parameters
1)-S: If you do not add any parameters to connect, it is hard link, as for-s is the symbolic link
2)-F: If the destination file exists, the target file is actively deleted and rebuilt.
A hard link is a record in the directory to the same inode, it will increase the number of links to the source file, when the source file is deleted, the hard link file can still open, but the number of links is reduced, and the symbolic link is a file to the filename, the source file deleted, the symbolic link file can no longer open. A hard link cannot boast a file system, nor can it point to a directory.
This article is from "Tiger Brother's Blog" blog, please be sure to keep this source http://7613577.blog.51cto.com/7603577/1591597
Linux disk and file system directives