Linux Command Cheat Sheet/Find files by modification time

Search for files changed recently.

Section: Searching and Pattern Matching

Find files by modification time

bash
bash
find /var/log -type f -mtime -1
Explanation

Helpful for cleanup jobs and recent-activity investigations.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Searching and Pattern Matching
Search text with grep
Print lines matching a pattern.
OpenIn sheetbashsame section
Extended regex search
Use extended regular expressions with grep.
OpenIn sheetbashsame section
Fixed-string search
Match text literally instead of as a regex.
OpenIn sheetbashsame section
Fast recursive search with rg
Recursively search text quickly while respecting ignore rules.
OpenIn sheetbashsame section
Find files by size
Locate large files with size filters.
OpenIn sheetbashsame section
Search shell history
Filter previous shell commands.
OpenIn sheetbashsame section