In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about the time related to files under Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Several times related to the file:
1. Access time, read the contents of this file once, and this time will be updated. For example, use the more command on this file. Neither the ls nor stat commands modify the access time of the file.
2, the modification time, modify the content of the file once, this time will be updated. For example: save the file after vi. This is the time listed in ls-l.
3. The time of state change. Change the file properties once through the chmod command, and this time will be updated. To view the detailed status of the file, the exact modification time, and so on, you can use the stat command file name.
For example: [jing@zhjh c] $stat temp.c
Reference:
File: 'temp.c'
Size: 66 Blocks: 8 IO Block: 4096 u4e00u822cu6587u4ef6
Device: 807h/2055d Inode: 1191481 Links: 1
Access: (0664 / jing) Gid: (500 / jing)
Access: 2008-03-12 20 purl 19purl 45.00000000000 0800
Modify: 2008-03-12 20 purl 19purl 45.00000000000 0800
Change: 2008-03-12 20 purl 19purl 45.00000000000 0800
Description: Access access time. Modify modification time. Change status change time. You can stat * to check the status of all files in this directory
In Linux, there is no concept of file creation time. Only the access time, modification time and state change time of the file. In other words, you cannot know when the file was created. However, if the file has not been modified after creation, the modification time = creation time; if the state has not changed after the creation of the file, then the state change time = creation time; if the file has not been read after creation, then the access time = creation time, which is unlikely
This is the end of this article on "what is the time related to files under Linux?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.