Page 1 of 1

How to get the list of files modified/changed in last 24hours

Posted: Sun Jul 15, 2018 12:37 am
by Dan Mark
Hello Nix,

How to get the list of files modified in last 24hours?

Re: How to get the list of files modified/changed in last 24hours

Posted: Sun Jul 15, 2018 12:42 am
by nickk
Hi,

The command "find" helps to you find the all files modified in last 24hr.

Re: How to get the list of files modified/created in last 24hours

Posted: Sun Jul 15, 2018 1:18 am
by shaan
Hi Dan,

As Nickk mentioned, you can use the help of find command to get the list of all files modified/changed in x hours.

Sample Commands:

#find / -mtime -1 (shows list of files modified in 24hr or less than 1 day ago)
#find / -mtime +1 (shows list of files modified more than 48 hours ago)
#find / -mtime 1 (shows files modified between 24 and 48 hours ago)

/ : Path to search (use your desired path)

-mtime -0.5 : the last 12 hours
-mtime -1 : the last 24 hours
-mtime -0.25 : the last 6 hours
-mtime +3 : more than three days


#find / -ctime -1 (shows list of files which are created in less then 1 day from currrent folder)
#find / -ctime +2 (shows files which are created older then 2 days from currrent folder)


====================
Shaan N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree

Re: How to get the list of files modified/changed in last 24hours

Posted: Sun Jul 15, 2018 1:20 am
by Dan Mark
Hi Shaan,

That was more than enough.

Thanks buddy! You saved my Day.

Re: How to get the list of files modified/changed in last 24hours

Posted: Thu Nov 08, 2018 9:46 pm
by bearbonesit
Hi shaan

I was also in the same problem. I was just looking for solution.

Thanks.