Use du
para obter o tamanho total e stat
para obter o tempo de acesso:
#! /bin/bash
for f in /boot/vmlinuz*
do
[[ $f =~ vmlinuz-(.*)-generic ]]
v=${BASH_REMATCH[1]}
s=$(du -ch /boot/*-$v-* | awk '/total/{print }')
printf '%s - %s - %s\n' "$v" "$(stat -c %x "$f")" "$s"
done
Saída:
4.4.0-21 - 2016-12-24 16:20:59.858505053 +0900 - 48M
4.4.0-57 - 2016-12-24 16:58:03.000000000 +0900 - 48M
4.4.0-59 - 2017-01-11 10:41:35.000000000 +0900 - 48M
4.4.0-62 - 2017-02-03 13:25:58.000000000 +0900 - 48M
4.4.0-64 - 2017-02-23 20:07:03.105502000 +0900 - 48M
4.4.0-66 - 2017-03-08 10:24:16.000000000 +0900 - 48M