Tente isto:
ls -ltu
mas você precisa de uma partição ext2-4
montada com a opção atime
ativada.
Ubuntu
tem a opção relatime
ativada por padrão.
De man mount
:
atime
Do not use noatime feature, then the inode access time is controlled by kernel defaults. See also the description for strictatime and relatime mount options.relatime
Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time. (Similar to noatime, but doesn't break mutt or other applications that need to know if a file has been read since the last time it was modified.)Since Linux 2.6.30, the kernel defaults to the behavior provided by this option (unless noatime was specified), and the strictatime option is required to obtain traditional semantics. In addition, since Linux 2.6.30, the file's last access time is always updated if it is more than 1 day old.
Exemplo em /etc/fstab
:
/dev/mapper/raid1-home /home ext4 defaults,atime 0 1
Nota: a ativação dessa opção tem um custo em termos de desempenho (E / S de disco).