How to view recent files from the command-line in ubuntu?
Here is the example to find all files (
-type f) in the current directory and all subdirectories accessed within last 30 minutes.
For files accessed less than 30 minutes ago:
find . -type f -amin -30
Let’s understand the command
search for files in a directory hierarchy
search in the current folder and all subfolders
search only fort files
File was last accessed 30 minutes ago.