File accesstime attribute Update-general Linux technology-Linux technology and application information, the following is a detailed description. I have been reading the Private food of laruence recently. It is indeed a good book and is very thorough. However, when talking about the touch command on page 129 in the book, when the cat command is used to read a file, the atime attribute of the file will be changed. However, I use
Check "ls-l -- time = atime -- full-time" and find that this attribute has not changed. What is the problem?
Attached to my specific lab steps:
// Create the test file first
Cat> test
// Enter some text and press ENTER + ctrl-d. test is created now.
$ Ll -- time = access -- full-time test // first check the atime of the file and compare it with the following code.
$ Cat test; cat test // get more times to ensure that atime is "modified correctly"
$ Ll -- time = access -- full-time test // compare with the previous atime
My findings: if you follow these steps, sometimes the changes are successful, especially when you execute cat for the first time, but if you perform the entire process multiple times, there may be problems-atime remains unchanged. (I 've found it hard to make a successful modification once every 10 times.) I am so tired that you can help me with my experiment on your own machine, if the problem also arises-cat cannot change the atime attribute (different from its description)-I believe that linux still has this bug.
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