lsコマンドの結果を更新順でリストするには -lt を付けます
lsコマンドはディレクトリやファイルをリストするコマンドです。特にオプションを付けずにlsコマンドを実行すると、アルファベット順にソートされてリストします。
# ls /var/log anaconda btmp-20181101 dmesg maillog messages-20181028 spooler tuned audit chrony firewalld maillog-20181021 rhsm spooler-20181021 vmware-vgauthsvc.log.0 boot.log cron grubby maillog-20181028 secure spooler-20181028 vmware-vmsvc.log boot.log-20181018 cron-20181021 grubby_prune_debug messages secure-20181021 tallylog wtmp btmp
-tオプションを付けると更新順にソートしてリストされるようになります。
# ls -t /var/log lastlog cron messages-20181028 secure-20181028 maillog-20181028 boot.log-20181018 firewalld anaconda tuned wtmp btmp cron-20181028 yum.log spooler-20181028 vmware-vmsvc.log grubby spooler-20181021 audit messages trueimage-setup.log maillog messages-20181021 secure-20181021 vmware-vgauthsvc.log.0 dmesg grubby_prune_debug chrony secure btmp-20181101 spooler cron-20181021 boot.log maillog-20181021 rhsm tallylog
これでは何かよく判らないので、-lオプションを付けてみます。
# ls -l /var/log 合計 768 drwxr-xr-x. 2 root root 204 10月 17 11:26 anaconda drwx------. 2 root root 23 8月 16 23:39 audit -rw-------. 1 root root 0 10月 18 03:31 boot.log -rw-------. 1 root root 9058 10月 18 03:31 boot.log-20181018 -rw-------. 1 root utmp 0 11月 1 03:42 btmp -rw-------. 1 root utmp 1152 10月 29 09:29 btmp-20181101 drwxr-xr-x. 2 chrony chrony 6 4月 13 2018 chrony -rw-------. 1 root root 42283 11月 2 16:01 cron -rw-------. 1 root root 28395 10月 21 03:27 cron-20181021 -rw-------. 1 root root 61624 10月 28 03:12 cron-20181028 -rw-r--r--. 1 root root 104526 10月 17 11:28 dmesg -rw-r--r--. 1 root root 0 10月 17 20:27 firewalld -rw-------. 1 root root 1299 10月 17 11:30 grubby -rw-r--r--. 1 root root 193 10月 17 11:23 grubby_prune_debug -rw-r--r--. 1 root root 292000 11月 2 16:49 lastlog -rw-------. 1 root root 0 10月 28 03:12 maillog -rw-------. 1 root root 206 10月 17 20:28 maillog-20181021 -rw-------. 1 root root 0 10月 21 03:27 maillog-20181028 -rw-------. 1 root root 80721 11月 2 16:49 messages -rw-------. 1 root root 222215 10月 21 03:27 messages-20181021 -rw-------. 1 root root 99570 10月 28 03:12 messages-20181028 drwxr-xr-x. 2 root root 6 10月 17 11:26 rhsm -rw-------. 1 root root 3578 11月 2 16:49 secure -rw-------. 1 root root 5872 10月 20 20:28 secure-20181021 -rw-------. 1 root root 1813 10月 26 18:45 secure-20181028 -rw-------. 1 root root 0 10月 28 03:12 spooler -rw-------. 1 root root 0 10月 17 11:23 spooler-20181021 -rw-------. 1 root root 0 10月 21 03:27 spooler-20181028 -rw-------. 1 root root 0 10月 17 11:23 tallylog -rw-r--r--. 1 root root 24465 10月 31 16:53 trueimage-setup.log drwxr-xr-x. 2 root root 23 8月 21 03:50 tuned -rw-r--r--. 1 root root 4219 10月 17 20:30 vmware-vgauthsvc.log.0 -rw-r--r--. 1 root root 8298 10月 17 20:30 vmware-vmsvc.log -rw-rw-r--. 1 root utmp 13440 11月 2 16:49 wtmp -rw-------. 1 root root 7671 10月 22 15:08 yum.log
更に-tオプションを付けて実行してみると
# ls -lt /var/log 合計 768 -rw-r--r--. 1 root root 292000 11月 2 16:49 lastlog -rw-rw-r--. 1 root utmp 13440 11月 2 16:49 wtmp -rw-------. 1 root root 80721 11月 2 16:49 messages -rw-------. 1 root root 3578 11月 2 16:49 secure -rw-------. 1 root root 42283 11月 2 16:01 cron -rw-------. 1 root utmp 0 11月 1 03:42 btmp -rw-r--r--. 1 root root 24465 10月 31 16:53 trueimage-setup.log -rw-------. 1 root utmp 1152 10月 29 09:29 btmp-20181101 -rw-------. 1 root root 99570 10月 28 03:12 messages-20181028 -rw-------. 1 root root 61624 10月 28 03:12 cron-20181028 -rw-------. 1 root root 0 10月 28 03:12 maillog -rw-------. 1 root root 0 10月 28 03:12 spooler -rw-------. 1 root root 1813 10月 26 18:45 secure-20181028 -rw-------. 1 root root 7671 10月 22 15:08 yum.log -rw-------. 1 root root 222215 10月 21 03:27 messages-20181021 -rw-------. 1 root root 28395 10月 21 03:27 cron-20181021 -rw-------. 1 root root 0 10月 21 03:27 maillog-20181028 -rw-------. 1 root root 0 10月 21 03:27 spooler-20181028 -rw-------. 1 root root 5872 10月 20 20:28 secure-20181021 -rw-------. 1 root root 0 10月 18 03:31 boot.log -rw-------. 1 root root 9058 10月 18 03:31 boot.log-20181018 -rw-r--r--. 1 root root 8298 10月 17 20:30 vmware-vmsvc.log -rw-r--r--. 1 root root 4219 10月 17 20:30 vmware-vgauthsvc.log.0 -rw-------. 1 root root 206 10月 17 20:28 maillog-20181021 -rw-r--r--. 1 root root 0 10月 17 20:27 firewalld -rw-------. 1 root root 1299 10月 17 11:30 grubby -rw-r--r--. 1 root root 104526 10月 17 11:28 dmesg drwxr-xr-x. 2 root root 6 10月 17 11:26 rhsm drwxr-xr-x. 2 root root 204 10月 17 11:26 anaconda -rw-------. 1 root root 0 10月 17 11:23 spooler-20181021 -rw-r--r--. 1 root root 193 10月 17 11:23 grubby_prune_debug -rw-------. 1 root root 0 10月 17 11:23 tallylog drwxr-xr-x. 2 root root 23 8月 21 03:50 tuned drwx------. 2 root root 23 8月 16 23:39 audit drwxr-xr-x. 2 chrony chrony 6 4月 13 2018 chrony
違いが判ると思います。更新順にソートすることで、更新されたデータを探すのが少し簡単になります。