How to Find Recently Modified Files on Windows, Mac and Linux

Last updated: · written by the FileLocator team

This is the classic rescue search: you know you edited the file yesterday, you just can't remember what it's called — or where you saved it. The date is the one thing you do know, so search by date. Every operating system can do it; here's the fastest method on each.

The short version: on Windows, type datemodified:yesterday into any File Explorer search box. If you have Everything installed, type dm:yesterday instead and sort by Date Modified — it's instant across all drives. On a Mac, type date:today into Spotlight or build a smart folder on Last modified date. On Linux, find . -mtime -1 lists everything changed in the last 24 hours.

1. File Explorer date filters (built into Windows)

Open the folder you probably saved into (start with Documents, Desktop or Downloads), click the search box in the top-right, and Explorer reveals its search ribbon:

  1. Click Search options → Date modified (on Windows 11; it's a ribbon dropdown on Windows 10) and pick Today, Yesterday, This week, Last week, This month or This year.
  2. Or skip the menu and type the filter directly into the search box:
datemodified:today
datemodified:yesterday
datemodified:this week
datemodified:6/1/2026..6/12/2026

The two-dots range syntax is the hidden gem — it accepts any pair of dates. Combine filters freely: *.xlsx datemodified:this week finds every spreadsheet touched since Monday. Searching from This PC covers all drives but is slow outside indexed locations; searching a specific folder is much quicker. More Explorer syntax lives in our Windows file search guide.

2. The Recent items folder (the file you just had open)

Windows quietly keeps shortcuts to everything you've opened recently:

  1. Press Win+R, type recent, press Enter.
  2. Sort the folder by Date modified (newest first).
  3. Right-click the shortcut you want → Open file location to find where the real file lives.

This works even for files you opened from a USB stick or network share, and it's often the fastest answer when the file was open this morning. It only tracks files you opened through standard dialogs, though — files written by scripts or saved by some apps never appear here.

3. Everything's dm: syntax — instant, across every drive

The free tool Everything turns this entire problem into a two-second job, because it already knows the modified date of every file on your NTFS drives. Type any of these into its search box:

dm:today
dm:yesterday
dm:last2hours
dm:thisweek

Then click the Date Modified column header to sort newest-first. The result list updates as you type, with no waiting and no index rebuild — that immediacy is why this is our default method on Windows. Narrow further by adding terms: dm:today .docx, or dm:last2hours report. You can even scope to a folder: c:\projects\ dm:thisweek.

4. PowerShell, when you need precision or a script

For exact cut-offs, scheduled checks, or output you can pipe elsewhere, open PowerShell in the folder you care about and run:

Get-ChildItem -Recurse | Where-Object LastWriteTime -gt (Get-Date).AddDays(-1)

That lists everything modified in the last 24 hours, recursively. Useful variations:

# Last 2 hours
Get-ChildItem -Recurse | Where-Object LastWriteTime -gt (Get-Date).AddHours(-2)

# Newest 20 files first
Get-ChildItem -Recurse -File | Sort-Object LastWriteTime -Descending | Select-Object -First 20

Add -ErrorAction SilentlyContinue after -Recurse if permission errors clutter the output on system folders.

5. Mac: Finder smart folders, Spotlight and mdfind

Three options, from clicky to scriptable — all covered in more depth in our Mac file search guide:

  • Spotlight: press +Space and type date:today (or date:yesterday) plus any keyword you remember.
  • Finder smart folder: in Finder choose File → New Smart Folder, click the + button, set the rule to Last modified datewithin last1 days, then Save it to the sidebar. It updates itself forever — a permanent "what changed today" view.
  • Terminal: query the Spotlight index directly:
mdfind 'kMDItemFSContentChangeDate >= $time.today'

Append -onlyin ~/Documents to scope it to one folder tree.

6. Linux: find, -mmin and fd

The classic find handles dates with -mtime (days) and -mmin (minutes):

# Modified in the last 24 hours
find . -mtime -1

# Modified in the last 60 minutes
find . -mmin -60

If you have the modern fd installed, the same searches read more naturally and run faster:

fd --changed-within 1d
fd --changed-within 60min

Pipe either through ls -lt-style sorting with find . -mtime -1 -printf '%T@ %p\n' | sort -rn to get newest-first. Our Linux file search guide covers find, locate and friends in full.

Which tool to reach for

  • Windows, file edited recently, name unknown: Everything with dm: — nothing else comes close for speed.
  • No software installs allowed: Explorer's datemodified: filters do the job, just slower on unindexed locations.
  • Hunting what's eating disk space rather than what changed: that's a different search — see how to find large files.
  • Choosing a long-term search tool: our best file search software roundup compares ten options across Windows, Mac and Linux.

Troubleshooting: when timestamps lie

  • Modified vs created vs accessed. Every file carries three timestamps. Modified changes when content is saved; created is when this copy appeared on this disk; accessed is unreliable (Windows often defers or disables updating it for performance). Date searches above all use modified — usually what you want.
  • Copied files keep their modified date. Copy a 2024 file today and it shows modified 2024, created 2026 — yes, "created" after "modified" is normal. If you're hunting a file you copied (not edited) recently, search by created instead: datecreated:today in Explorer, dc:today in Everything.
  • Cloud placeholders. OneDrive, Dropbox and Google Drive online-only files are stubs until downloaded, and a sync client can bump timestamps when it re-downloads or resolves conflicts — so a file may show "modified today" that nobody touched. Check the cloud service's own version history when dates look wrong.
  • Nothing shows up at all. You're probably searching the wrong scope. Re-run from This PC (Windows) or / with sudo (Linux), then narrow down once you get hits.

FAQ

Can I find files modified in the last hour?

Yes. Everything: dm:last2hours (or define any window). PowerShell: Where-Object LastWriteTime -gt (Get-Date).AddHours(-1). Linux: find . -mmin -60. File Explorer's typed syntax only goes down to days, so use one of the others for hour-level precision.

Does opening a file change its modified date?

No — only saving does. Opening can update the accessed timestamp, but modern Windows frequently skips even that for performance, which is why accessed dates are not worth searching on.

Why does a file show a created date newer than its modified date?

It was copied or downloaded. Copying preserves the original modified date but stamps a fresh created date on the new copy. It looks backwards but it's expected behavior on Windows, Mac and Linux alike.

Stop losing files in the first place

We tested 10 search tools that find any file — by date, name or contents — in under a second.

See the best file search software

keep exploring

Related reading

/reviews/everything/

Everything review

The full rundown of voidtools' instant search, including the dm:, size: and ext: filters power users live in.

/guides/find-large-files/

How to find large files

The same trick with size instead of dates — reclaim gigabytes by hunting your biggest files.

/guides/organize-files-folder-structure/

Folder structure best practices

Build a folder system predictable enough that you rarely need rescue searches at all.