After doing some experimentation of my own, I noticed that the access times on files are not always updated when accessed, either through a text editor -- without modifying the file -- or cat
.
Although I don't have the server edition of Ubuntu installed, I imagine this would be pretty useful in a server environment, in cases where a breach is suspected.
In particular, I'd like to know which file I need to modify so that the access times on files get automatically updated no matter how many times they're accessed.
touch file1.txt
. Then I will attempt to access the file's contents usingcat file1.txt
, which will modify the access time, but then if I typecat file1.txt
a second time, a few minutes later, the access time won't change.relatime
in action. Maybe mount withstrictatime
.