Simple Linux Command Line notes: stat

Source: Internet
Author: User
Document directory
  • Option
  • Example

Display file information

Stat [Options] [File-list]

 

Parameters

File-listSpecifyStatThe path name of one or more files displayed.

 

Option

-F: displays information about the file system, not the file information.

 

Example stat
$ Stat demo.tar.bz2 file: "demo.tar.bz2" Size: 133 blocks: 8 IO blocks: 4096 common file devices: 808 h/2056d Inode: 671938 hard link: 1 permission: (0644/-rw-r --) Uid :( 1000/siu) Gid :( 1000/siu) Recent access: 18:51:13. 979123414 + 0800 recent changes: 17:40:27. 075695222 + 0800 latest changes: 17:40:27. 075695222 + 0800 Creation Time :-

Show File Information

 

Stat-f
$ Stat-f/file: "/" ID: d2c798526f17cef7 File Name Length: 255 type: ext2/ext3 block size: 4096 basic block size: 4096 blocks: Total: 4130144 idle: 1924228 available: 1714424 Inodes: Total: 1050576 idle: 773152

Display file system information

 

 

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.