I want to check files which are recently added to the folder in unix environment.
is there any find check
find -name 'filename' timestamp last 5 mins ??
Quick Access Popup Recent folders and Recent files are taken from the Windows virtual folder Recent items (C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Recent or, using the appdata variable, %appdata%\Microsoft\Windows\Recent).
What are Recent Files? Recent Files are files that have been opened or edited in the recent past.
Open File Explorer. Click on Quick Access, if that isn't the default, opened location. Look for Recent Files in the lower-right corner. Scroll down to see the last 20 recent files.
To locate files modified less than 5 minutes ago
find -name 'filename' -mmin -5
From the man page:
-mmin n
File's data was last modified n minutes ago.
-mtime n
File's data was last modified n*24 hours ago.
-mmin is supported under most recent versions of GNU find.
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories:
find . -mtime -1 -print
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With