Most filesystems you’ll use under Linux have not just a last modified time (mtime), which is what touch defaults to changing, but also a last-accessed time (atime) that the kernel will already be recording.
Try running stat on a file and it’ll show the atime.
find can search for files that haven’t been accessed more-recently than a given time with the -atime option.
Most filesystems you’ll use under Linux have not just a last modified time (mtime), which is what
touchdefaults to changing, but also a last-accessed time (atime) that the kernel will already be recording.Try running
staton a file and it’ll show the atime.findcan search for files that haven’t been accessed more-recently than a given time with the-atimeoption.