开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜