Find Files and Directories Based on Modification Time in Linux

Rate this post

Find Files and Directories Based on Modification Time in Linux

In Unix-like and some other operating systems, find is a command-line utility that searches one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file.

Find Last 50 Days Modified Files

To find all the files which are modified 50 days back.

# find / -mtime 50

Find Last 50 Days Accessed Files

To find all the files which are accessed 50 days back.

# find / -atime 50

Find Last 50-100 Days Modified Files

To find all the files which are modified more than 50 days back and less than 100 days.

# find / -mtime +50 –mtime -100

Find Changed Files in Last 1 Hour

To find all the files which are changed in last 1 hour.

# find / -cmin -60

Find Modified Files in Last 1 Hour

To find all the files which are modified in last 1 hour.

# find / -mmin -60

Find Accessed Files in Last 1 Hour

To find all the files which are accessed in last 1 hour.

# find / -amin -60


Find Files by Modification Time in linux

Find Files Based on their Permissions in Linux

Find Linux Command : Basic

For any query or issue, feel free to discuss on http://discuss.eduguru.in

Leave a Reply

%d bloggers like this: