Find Files Accessed During Last 1 Day in Linux

Last updated on Dec 29, 2019 in Linux

To find files that has been accessed but not changed during last 1 day (or any number of days) you are most likely trying to find files that has last access time, the atime, newer than that specific date. For example, to find out which files has been opened during the day.

We are using simple find command to do the job. Go to your folder and then type in terminal:

$ find . -atime -1
  • The . is the starting point, i.e. the current working directory in this case
  • -atime finds files by atime, which is the last access time
  • -1 stands for files newer than 1 day. You can use any number here, of course. If you are looking for files newer than 1 year, use -365.

If you want to find files that has been modified during last 1 day, check article: Find Files Newer Than 1 Day in Linux