Questions tagged [atime]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
180 views

Why is atime updating when equal to mtime and ctime?

I'm trying to understand how inode access time is handled with the default "relatime" mount option in Linux, but the behavior documented in mount(8) doesn't quite match what I see. It says: ...
epiii2's user avatar
  • 23
1 vote
2 answers
1k views

How useful is it to disable access time logging on SSD and are there disadvantages doing so?

As SSD drives have limited writes, I would like to know whether disabling access time logging still plays a significant role in 2021. Most websites I see on the subject are from 2015 and before, and ...
Johannes Lemonde's user avatar
0 votes
1 answer
1k views

`noatime` mount option's effect on `stat` access time

I have mounted ext4 partition in Ubuntu 20.04 with noatime mount option in my /etc/fstab From stat: Access time doesn't change when the file is opened on the editor or modified and saved, while ...
Porcupine's user avatar
  • 1,802
1 vote
2 answers
2k views

rsync keep access time (atime), how?

I am using rsync-3.2.3 on Fedora 33 (GNOME). But how can I keep the access time (atime) for my files and folders? I can only keep the modified time (mtime) with this command: rsync -t
Laradu9sna7al's user avatar
0 votes
1 answer
356 views

Does GNU tar incremental backup save an entire file again, even if only atime or mtime is different?

mkdir test echo "hi" > test/file1 tar -c -f archive.0.tar -g test.snar test touch -a test/file1 # changes atime and ctime, doesn't change mtime tar -c -f archive.1.tar -g test.snar test ...
qwr's user avatar
  • 697
1 vote
0 answers
347 views

Problem "atime in future"

I have a problem running Aide. After doing different tasks in the system, most notarius ones were to change user and home name and to change system's date to EST. Then I run Aide and it showed a huge ...
Ecofintech's user avatar
0 votes
1 answer
163 views

GNU tar man-page mysterious references to METHOD='replace' and METHOD='system'

My tar (GNU tar 1.28) man-page lists the --atime-preserve option, which applies to the time a file is added to the tarball. The full explanation reads thus: --atime-preserve preserve access ...
Roadowl's user avatar
  • 129
0 votes
1 answer
386 views

How to prevent `atime` in Linux from overwriting `Date created` in Windows on NTFS?

From Linux, if I alter files on an NTFS external HD so that I get some specific values for mtime, atime and ctime (readable with the stat command, and with ctime = mtime because one cannot change ...
The Quark's user avatar
  • 270
4 votes
1 answer
629 views

List of applications that require atime [closed]

Without digging into the rationale behind access time tracking, its write-amplification effects in particular for SSDs, or the fact that it can be somewhat mitigated by the relatime and lazytime mount ...
akobel's user avatar
  • 141
1 vote
1 answer
453 views

chmod without changing stat (atime) of file

i would like to be able to chmod a directory structure without changing the atime of those (files and) directories. if i start out with a file structure like $ tree test/ test/ ├── test1.txt └── ...
hiro protagonist's user avatar
2 votes
1 answer
455 views

Why is find(ing) by -atime not printing expected files? [closed]

I'm trying to recursively find files that have not been accessed for over 365 days. I can use stat and verify that the file has not been accessed for over 365 days. It is odd that the file shows that ...
Brian Gottier's user avatar
1 vote
2 answers
424 views

Does Duplicity modify atime when backing up?

My data resides on a SSD and — thanks to re-writes and Write Amplification — any modification of an atime will result in not only the inode being modified, but the whole block that it resides on being ...
Tim's user avatar
  • 732
6 votes
1 answer
531 views

Does a typical single-user desktop Linux system have apps requiring atime?

I've just: Does using noatime on modern Linux make sense? and I'm interpreting the answer there as follows: "If you don't have applications that depend on atime's being valid, you don't need them." ...
einpoklum's user avatar
  • 9,217
1 vote
1 answer
707 views

Changing file modification time to access time in bulk

I have a bunch of files in a directory where the modification time was changed (incorrectly) with touch -m The access time of these files is still close enough to what the modification time was, so I'...
Joe's user avatar
  • 113
0 votes
1 answer
246 views

List (and then delete) files that has last read-access older than 6 months

How to list files that has last read-access older than 6 months? Then, how to delete them? My filesystem seems to be mounted with: /dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
Basj's user avatar
  • 2,401
6 votes
1 answer
714 views

Why does my file have multiple crtime entries?

Using ext4 filesystem I was able to read out the creation time of a file using the approach here. As a result I am indeed provided with a table featuring the crtime (creation time) of the inode(...
humanityANDpeace's user avatar
1 vote
6 answers
1k views

How to check what file content changes, not the atime, mtime, ctime in Linux?

Is there any ways to find out what file content has been modified or added in Linux. I am aware of the atime,ctime,mtime. Say I created a script "myscript.sh" and somebody changed some content of it ...
Bustam's user avatar
  • 143
6 votes
1 answer
9k views

Why is EXT4 filesystem mounted with both relatime and lazytime

I'm running Debian/Testing, with kernel 4.4: # uname -a Linux shaula 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64 GNU/Linux So I want to use the lazytime mount option, which is why I put ...
andreas-h's user avatar
  • 649
7 votes
1 answer
11k views

Check last time .sh file used

When you run ./myscript.sh is that considered as "access" time? I need to know the last time a script was run, but I'm not sure if this counts as mtime, ctime or atime (differences described here).
Andrejs's user avatar
  • 315
3 votes
1 answer
3k views

ls -lu does not give last access time

The manpage of ls says: -u with -lt: sort by, and show, access time; with -l: show access time and sort by name; otherwise: sort by access time but that doesn't seem to work: test@...
viuser's user avatar
  • 2,574
6 votes
2 answers
2k views

How can I tell if a directory is mounted with noatime or nodirtime?

I work with an NFS partition on a mac. Commands like du take a very long time, and I was considering unmounting the NFS and remounting it with noatime and nodirtime. The partitions have been mounted ...
Dan's user avatar
  • 9,442
2 votes
1 answer
433 views

What happened to /proc/sys/fs/relatime_interval?

According to one answer relatime interval can be changed by echo 60 > /proc/sys/fs/relatime_interval but I do not have such a file? Where did it go? $ ls /proc/sys/fs aio-max-nr file-...
ArekBulski's user avatar
5 votes
1 answer
660 views

Is there software relying on `strictatime`?

I am preparing to implement a filesystem in FUSE. Implementing only one mode would be easier. Relatime is the default behavior of all kernel implemented filesystems. Is strictatime behavior still ...
ArekBulski's user avatar
4 votes
1 answer
512 views

Cache atime writes

Is there a way to set atime writes to be cached for a very long time? I need atime (that is to say, relatime won't cut it), but I don't want it to effect performance so much. Data loss in of atimes (...
Tyler's user avatar
  • 368
1 vote
1 answer
160 views

Make updatedb not change access times

Can I keep updatedb on but prevent it from changing atimes? I want to automatically tar up repos that haven't been accessed (by me, not some daemon) for a certain period of time.
Petr Skocik's user avatar
  • 28.5k
3 votes
1 answer
98 views

Recover atime after vim

I've vimed a file, and only afterwards realised that I need the atime (last access time) for the file. Is there any way to recover the atime for a file after accessing it inadvertently? The ...
dotancohen's user avatar
  • 15.7k
7 votes
1 answer
1k views

Can "find" command preserve access-time

I'm running the following command which is supposed to find specific directories according to their Access-Time metadata detail however for some reason the find command changes the access time of ...
Nir Ben-Or's user avatar
17 votes
2 answers
6k views

Does using noatime on modern Linux make sense?

Starting from version 2.6.30 (which was released 5 years ago), Linux has the option relatime enabled by default. It means updates of file access time are very infrequent and prudent. But I still see ...
valodzka's user avatar
  • 405
4 votes
2 answers
3k views

File access time not updating in ubuntu 12.04

After using the cat command to read a file, I used the stat command to view it's changed access time, but it's not getting updated. I checked /etc/fstab file and there is no noatime on any of my ...
Cody's user avatar
  • 143
2 votes
1 answer
787 views

Atime value changing only once after file creation

I've mounted disk with explicit given value - atime: mount -o mount -o atime /dev/disk1 /myDisk then I've created a file by touch file_A after this operation stat output looks like that: Access: ...
Borys's user avatar
  • 123
3 votes
2 answers
1k views

On touching a new file why is mtime and ctime older than atime?

I have this: $ ls -l ff ls: cannot access ff: No such file or directory $ touch ff $ stat ff File: `ff' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/...
Ankur Agarwal's user avatar
11 votes
3 answers
3k views

Why is sorting files by access time not working?

I tried to use command ls --time=atime it was working in one directory but wasn't working in another directory. I opened certain files in vim, evince and other applications but after the command file ...
xralf's user avatar
  • 16k