findコマンドで「ls」を使用する方法をご紹介します。
以下のように実行します。
1 |
find /var/log/sa -type f -ls; |
確認してみましょう。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# find /var/log/sa -type f -ls -rw-r--r-- 1 root root 497696 Jan 1 23:50 /var/log/sa/sa01 -rw-r--r-- 1 root root 497696 Dec 16 23:50 /var/log/sa/sa16 -rw-r--r-- 1 root root 381485 Jan 3 23:53 /var/log/sa/sar03 -rw-r--r-- 1 root root 381485 Dec 11 23:53 /var/log/sa/sar11 -rw-r--r-- 1 root root 497696 Jan 6 23:50 /var/log/sa/sa06 -rw-r--r-- 1 root root 381485 Dec 19 23:53 /var/log/sa/sar19 -rw-r--r-- 1 root root 381485 Jan 8 23:53 /var/log/sa/sar08 -rw-r--r-- 1 root root 497696 Jan 7 23:50 /var/log/sa/sa07 -rw-r--r-- 1 root root 497696 Dec 14 23:50 /var/log/sa/sa14 -rw-r--r-- 1 root root 381485 Dec 14 23:53 /var/log/sa/sar14 -rw-r--r-- 1 root root 497696 Jan 5 23:50 /var/log/sa/sa05 -rw-r--r-- 1 root root 381485 Jan 2 23:53 /var/log/sa/sar02 -rw-r--r-- 1 root root 381485 Dec 22 23:53 /var/log/sa/sar22 -rw-r--r-- 1 root root 381485 Dec 25 23:53 /var/log/sa/sar25 -rw-r--r-- 1 root root 381485 Dec 24 23:53 /var/log/sa/sar24 -rw-r--r-- 1 root root 497696 Dec 19 23:50 /var/log/sa/sa19 -rw-r--r-- 1 root root 497696 Dec 15 23:50 /var/log/sa/sa15 -rw-r--r-- 1 root root 497696 Dec 26 23:50 /var/log/sa/sa26 -rw-r--r-- 1 root root 497696 Dec 21 23:50 /var/log/sa/sa21 -rw-r--r-- 1 root root 497696 Dec 20 23:50 /var/log/sa/sa20 -rw-r--r-- 1 root root 381485 Jan 5 23:53 /var/log/sa/sar05 -rw-r--r-- 1 root root 381485 Dec 26 23:53 /var/log/sa/sar26 -rw-r--r-- 1 root root 381485 Dec 17 23:53 /var/log/sa/sar17 -rw-r--r-- 1 root root 381485 Dec 15 23:53 /var/log/sa/sar15 -rw-r--r-- 1 root root 381485 Dec 23 23:53 /var/log/sa/sar23 -rw-r--r-- 1 root root 381485 Dec 10 23:53 /var/log/sa/sar10 -rw-r--r-- 1 root root 497696 Dec 11 23:50 /var/log/sa/sa11 -rw-r--r-- 1 root root 381485 Jan 1 23:53 /var/log/sa/sar01 -rw-r--r-- 1 root root 381485 Dec 21 23:53 /var/log/sa/sar21 -rw-r--r-- 1 root root 381485 Dec 29 23:53 /var/log/sa/sar29 -rw-r--r-- 1 root root 328548 Jan 9 15:40 /var/log/sa/sa09 -rw-r--r-- 1 root root 497696 Dec 24 23:50 /var/log/sa/sa24 -rw-r--r-- 1 root root 497696 Dec 22 23:50 /var/log/sa/sa22 -rw-r--r-- 1 root root 381485 Dec 13 23:53 /var/log/sa/sar13 -rw-r--r-- 1 root root 497696 Jan 8 23:50 /var/log/sa/sa08 -rw-r--r-- 1 root root 497696 Dec 13 23:50 /var/log/sa/sa13 -rw-r--r-- 1 root root 381485 Dec 27 23:53 /var/log/sa/sar27 -rw-r--r-- 1 root root 497696 Dec 30 23:50 /var/log/sa/sa30 -rw-r--r-- 1 root root 381485 Dec 18 23:53 /var/log/sa/sar18 -rw-r--r-- 1 root root 381485 Dec 30 23:53 /var/log/sa/sar30 -rw-r--r-- 1 root root 497696 Dec 29 23:50 /var/log/sa/sa29 -rw-r--r-- 1 root root 497696 Dec 18 23:50 /var/log/sa/sa18 -rw-r--r-- 1 root root 381485 Jan 4 23:53 /var/log/sa/sar04 -rw-r--r-- 1 root root 497696 Dec 28 23:50 /var/log/sa/sa28 -rw-r--r-- 1 root root 497696 Dec 31 23:50 /var/log/sa/sa31 -rw-r--r-- 1 root root 497696 Dec 27 23:50 /var/log/sa/sa27 -rw-r--r-- 1 root root 497696 Dec 12 23:50 /var/log/sa/sa12 -rw-r--r-- 1 root root 381485 Dec 16 23:53 /var/log/sa/sar16 -rw-r--r-- 1 root root 497696 Dec 25 23:50 /var/log/sa/sa25 -rw-r--r-- 1 root root 381485 Dec 28 23:53 /var/log/sa/sar28 -rw-r--r-- 1 root root 381485 Dec 20 23:53 /var/log/sa/sar20 -rw-r--r-- 1 root root 497696 Jan 3 23:50 /var/log/sa/sa03 -rw-r--r-- 1 root root 497696 Jan 2 23:50 /var/log/sa/sa02 -rw-r--r-- 1 root root 381485 Jan 6 23:53 /var/log/sa/sar06 -rw-r--r-- 1 root root 497696 Dec 23 23:50 /var/log/sa/sa23 -rw-r--r-- 1 root root 497696 Jan 4 23:50 /var/log/sa/sa04 -rw-r--r-- 1 root root 381485 Jan 7 23:53 /var/log/sa/sar07 -rw-r--r-- 1 root root 381485 Dec 31 23:53 /var/log/sa/sar31 -rw-r--r-- 1 root root 497696 Dec 17 23:50 /var/log/sa/sa17 -rw-r--r-- 1 root root 381485 Dec 12 23:53 /var/log/sa/sar12 # |