How do you list the last 10 files with access in your directory on unix?

So, I want to run a command in a shell that can return the last 10 files with unix access, the whole directory is huge, so I would like to see the last 10 ...

+3
source share
1 answer
ls -ltur | tail -10

Strictly, it will still take a lot of time, since filtering is performed after reading the entire catalog. But at least you keep the display of not interesting entries (which can be slow on some terminal emulators).

+3
source

All Articles