开发者

How do you list the last 10 accessed files in your directory in unix?

开发者 https://www.devze.com 2023-03-10 05:39 出处:网络
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

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

精彩评论

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