What are the Times in Linux divided into?

Source: Internet
Author: User

1.1 in Linux.time is divided into three kinds

1.mtime(Modify time) modification times , file / directory modification time, file content modification

2.ctime change time, changes in File/ directory properties, modified time, size, number of hard links, permissions, owner, owning group, type

3.atimeaccess time, access time of file / or directory, access time is not changed after viewing the file and the content is not changed

use Stat to view file details

[Email protected] tmp]# stat test.txt

File: ' Test.txt '

size:0 blocks:0 IO block:4096 Regular empty file

device:803h/2051d inode:398305 links:1

Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)

access:2017-07-29 15:02:22.478435838 +0800 # #访问时间

modify:2017-07-29 15:02:22.478435838 +0800 # #修改时间

change:2017-07-29 15:02:22.478435838 +0800 # #改变时间

[Email protected] tmp]# echo 1 >test.txt

[Email protected] tmp]# stat test.txt

File: ' Test.txt '

Size:2 blocks:8 IO block:4096 Regular file

device:803h/2051d inode:398305 links:1

Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)

access:2017-07-29 15:02:22.478435838 +0800

modify:2017-07-29 15:03:09.540436756 +0800

change:2017-07-29 15:03:09.540436756 +0800

[email protected] tmp]# cat Test.txt

1

[Email protected] tmp]# stat test.txt

File: ' Test.txt '

Size:2 blocks:8 IO block:4096 Regular file

device:803h/2051d inode:398305 links:1

Access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root)

access:2017-07-29 15:03:30.688435443 +0800

modify:2017-07-29 15:03:09.540436756 +0800

change:2017-07-29 15:03:09.540436756 +0800

[Email protected] tmp]#




<>> Novice, please give me a lot of advice <><><><><><><><><><><> <<><><><><><><><><><><><>>

This article is from the "Qizhong" blog, make sure to keep this source http://qizhong.blog.51cto.com/12933988/1952086

What are the Times in Linux divided into?

Related Article

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.