Stat Command : Detailed information of file/file system is displayed;
use format : Stat file name
The stat command is primarily used to display detailed information about a file or file system, which has the following syntax:
-F does not display information about the file itself and displays information about the file system where the file resides
-L Display Symbolic links
-T compact mode, displaying only summary information
As follows:
3 times associated with a file:
1, Access time, read the contents of this file, this time will be updated. For example, use the more command for this file. The LS, stat command does not modify the file access time.
2, modify the time, the contents of the file modification once, this time will be updated. For example: VI after saving files. The time that ls-l lists is this time.
3, state change time. Change the file properties once with the chmod command, and the time will be updated. To view the detailed status of the file, the exact modification time, etc., you can use the stat command file name.
size:41
Description
The size of the file.
Blocks:8
Description
This file occupies 8 blocks, the unit of the block is 512 bytes, because the file system's block is 4,096 bytes, divided by 512 bytes, is 8 blocks. That is, a file has a minimum of 8 blocks.
Regular file
Description
The status of the file is not normal, here is the full file
Description: Refers to the device that holds the file
IO block:4096
Description
Io
Block represents the size of the file system block, ext3 default is 4096, can be adjusted to 2048, etc., but Ext3 is the largest is 4096, can be tune2fs
-L/DEV/SDA1 to confirm.
inode:270235
Description
The inode is the I node
Links:1
Description
Only this file name is used for this inode. If you have two file names using this inode, the number here will be 2, for example a hard link.
The stat of Linux