How do you list the last 10 accessed files in your directory in unix?
So I want to run a command on shell that can return the开发者_高级运维 last 10 accessed files in unix the whole directory is huge so i would only like to see last 10 ...
ls -ltur | tail -10
Tough, this will still take a lot of time, since the filtering is done after reading the whole directory. But at least, you save the displaying of non-interesting entries (which can be slow on some terminal emulators).
精彩评论