List all files that are modified recently with Timestamp
For Admin Some times it is essential to check the time-stamp of configuration files when it was last edited.
to check the recently modified files run the below command
# find <PATH> -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
Example :
# find /var/log -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
Sample Result:
root@TecGeeks:~# find /var/log -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
2017-01-12 11:05:14.2516224630 /var/log/auth.log
2017-01-12 11:01:02.0536854810 /var/log/syslog
2017-01-12 11:01:02.0536854810 /var/log/mail.log
2017-01-12 11:01:02.0536854810 /var/log/mail.err
2017-01-12 10:55:36.6871545290 /var/log/wtmp
2017-01-12 10:55:36.6871545290 /var/log/lastlog
2017-01-12 04:28:53.5608394720 /var/log/unattended-upgrades/unattended-upgrades.log
2017-01-11 15:57:47.7113852130 /var/log/btmp
to check the recently modified files run the below command
# find <PATH> -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
Example :
# find /var/log -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
Sample Result:
root@TecGeeks:~# find /var/log -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | more
2017-01-12 11:05:14.2516224630 /var/log/auth.log
2017-01-12 11:01:02.0536854810 /var/log/syslog
2017-01-12 11:01:02.0536854810 /var/log/mail.log
2017-01-12 11:01:02.0536854810 /var/log/mail.err
2017-01-12 10:55:36.6871545290 /var/log/wtmp
2017-01-12 10:55:36.6871545290 /var/log/lastlog
2017-01-12 04:28:53.5608394720 /var/log/unattended-upgrades/unattended-upgrades.log
2017-01-11 15:57:47.7113852130 /var/log/btmp
List all files that are modified recently with Timestamp
Reviewed by TecGeeks News
on
January 11, 2017
Rating:
No comments: