We can get files last modified date/time files in your system by the command.
The below command will find all modified files in the current directory between date 17.07.2015 time 01:00 to date 17.07.2015 time 8.00
# find . -newermt "2015-07-17 01:00" ! -newermt "2015-07-18 08:00"
To find all modified files in the last 24 hours in a particular directory and its sub-directories:
# find /directory_path -mtime -1 -ls
# find /directory_path -mtime -1 -ls -exec stat -c "%n %y" {} \;
# find /directory_path -mtime -1 -ls -exec stat -c "%n %y" {} \;
Find Modified files and directory maximum directory depth 2
Files :
# find . -maxdepth 2 -type f -exec stat -c "%n %y" {} \;
./README 2014-12-03 14:41:47.000000000 +0530
./misc/gpl-3.0.txt 2014-11-20 14:59:09.000000000 +0530
./misc/CHANGELOG 2014-12-11 22:18:00.000000000 +0530
Directores:
# find . -maxdepth 2 -type d -exec stat -c "%n %y" {} \;
. 2015-06-19 17:39:44.124226241 +0530
./misc 2015-06-19 17:30:05.804204643 +0530
./css 2015-06-19 17:30:05.764204642 +0530
Comments (0)