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.
If anything miss-configured on the server by any user and you want to find the files which are recently change, below are the command will help you to find and track those files.
to check the recently modified files using Find command see below example.
# find <PATH> -type f -printf ‘%TY-%Tm-%Td %TT %p\n’ | sort -r | more
# find /var/log -type f -printf ‘%TY-%Tm-%Td %TT %p\n’ | sort -r | more
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
Your Profile can also be listed here, Want to share you Experience, become a TecGeeks Author Submit here
Latest posts by Rahul Kansi (see all)
- How to Boot to Windows if Linux corrupt boot Loader in Dual OS - July 8, 2017
- What Is the full form of PING - July 8, 2017
- How to change Date, Timeand Time Zone on Linux server - June 9, 2017