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 Monitor your Linux and Windows Servers with CloudStats - May 18, 2017
- How to protect your Server against the ransomware attack - May 16, 2017
- How to force a user to change his password upon next login? - April 28, 2017