The stat of Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.