• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Find The List Of Files Modified In The Last 30 Minutes In Linux

How To Find The List Of Files Modified In The Last 30 Minutes In Linux

By Sourabh / December 24, 2023 Category: How To, Ubuntu

How to find the list of files modified in the last 30 minutes in Linux? Learn how to find files modified in last 5 minutes Linux or find files modified in last 2 days Linux.

Using find Command

The ‘find’ command searches the directory tree rooted at each file name FILE by evaluating the EXPRESSION provided. This list of files to search is followed by a list of expressions
describing the files we wish to search for.

find [path] -type f -mmin n

NOTE: The n indicates the time in minutes – how many minutes you want to find files for. The following command options are used:

  • -n will find the files which have been modified in less than n minutes (- is for more/decreasing order)
  • +n will find the files which have been modified in more than n minutes (+ is for more/increasing order)
  • n will find the files which have been modified in exacly specific n minutes

Finding files modified in the last 5 minutes

The following fin command will find all the files that have been modified in the last ten minutes. Note that unless path is specified, it will find files in the current directory.

find . -type f -mmin -10

Finding files modified in the last n days

We use -mtime instead of -mmin to find modified files in the last n days instead of n minutes. For example, to find files that have been modified in the last 3 day in Downloads folder, the following command will be used:

find /Downloads -type f -mtime -3 -ls

Similarly, if you want to find modified directories in the last n minutes or days, just change -type f with -type d. The d is for directories whereas the f is for files.

Primary Sidebar

Latest Posts

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

Best AI Plugins For WordPress To Use In 2026

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap