How can I list (ls) the 5 last modified files in a directory?

前端 未结 5 1309
慢半拍i
慢半拍i 2020-12-07 08:52

I know ls -t will list all files by modified time. But how can I limit these results to only the last n files?

5条回答
提交回复
热议问题