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

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
Dan Mark
Posts: 0
Joined: Sat Sep 17, 2016 8:11 am

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

Post by Dan Mark » Sun Jul 15, 2018 12:37 am

Hello Nix,

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



nickk
Posts: 0
Joined: Wed Oct 26, 2016 9:38 am

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

Post by nickk » Sun Jul 15, 2018 12:42 am

Hi,

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



shaan
Posts: 0
Joined: Sat Apr 14, 2018 4:21 pm

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

Post by shaan » Sun Jul 15, 2018 1:18 am

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



Dan Mark
Posts: 0
Joined: Sat Sep 17, 2016 8:11 am

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

Post by Dan Mark » Sun Jul 15, 2018 1:20 am

Hi Shaan,

That was more than enough.

Thanks buddy! You saved my Day.



bearbonesit
Posts: 0
Joined: Sat Nov 03, 2018 9:57 pm
Location: Payson, UT
Contact:

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

Post by bearbonesit » Thu Nov 08, 2018 9:46 pm

Hi shaan

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

Thanks.



Post Reply