Fstat-Read File related information

Source: Internet
Author: User

#Fstat Read the information["Dev"]=> Int (16777220) ["Ino"]=> Int (66880002) ["Mode"]=> Int (33188) ["Nlink"]=> Int (1) ["UID"]=> Int (501) ["GID"]=> int (0) ["Rdev"]=> Int (0) //File Size (units: bytes)["Size"]=> Int (99) //Recent Open Time["Atime"]=> Int (1473608386) //Content Modification Time["Mtime"]=> Int (1473607901)  //file Limit modification time["CTime"]=> Int (1473607921)  ["Blksize"]=> int (4096) ["Blocks"]=> Int (8)

One thing to be aware of is:

The file's access Time,atime is changed when the file is read or executed, which is updated every time the file is opened.

The modified time,mtime of a file is changed when the file is written with changes to the contents of the file.

The file's create Time,ctime is changed as the content of the inode changes when writing to a file, changing owner, permission, or link settings .

As a result, changing the contents of a file changes mtime and CTime, but the CTime of the file may change when the mtime does not change, such as when the permissions change, but the contents of the file do not change.


Description of each field:

Fstat-Read File related 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.