Find files modified in last X days

Use below command to search all files and directories modified in last 30 days. Here dot (.) is used to search in current directory. And -30 defines to search files modified in last 30 day. Change this number with your search requirements.

find . -mtime -30

You can also customize search based on file type. Use -type followed with -f (file) or -d (directory). Below command will search for files only.

find . -type f -mtime -30

#linux commands #command #find #search

How To Find Files Modified in Last 30 Days in Linux
3.35 GEEK