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..

Moderator: Staff

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 »

Hello Nix,

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


nickk

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

Post by nickk »

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 »

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 »

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 »

Hi shaan

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

Thanks.


If you are looking for assistance in server management, please get in touch with our support.
Post Reply