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

Asked on September 14, 2019 in info.
Add Comment
1 Answer(s)

    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.

     

    Answered on September 14, 2019.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.