How to view recent files from the command-line in ubuntu?
How to view recent files from the command-line in ubuntu?
Is it possible to view recently accessed files using a single command in the command-line
Add Comment
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
find
search for files in a directory hierarchy
.
search in the current folder and all subfolders
-type f
search only fort files
-amin 30
File was last accessed 30 minutes ago.