Hello Nix,
How to get the list of files modified in last 24hours?
How to get the list of files modified/changed in last 24hours
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: How to get the list of files modified/changed in last 24hours
Hi,
The command "find" helps to you find the all files modified in last 24hr.
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
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
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
Hi Shaan,
That was more than enough.
Thanks buddy! You saved my Day.
That was more than enough.
Thanks buddy! You saved my Day.
-
- 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
Hi shaan
I was also in the same problem. I was just looking for solution.
Thanks.
I was also in the same problem. I was just looking for solution.
Thanks.