Linux:目录中的最近的文件 [英] Linux: Most recent file in a directory
本文介绍了Linux:目录中的最近的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正在查找将返回目录中最近的单个文件的命令。
Looking for a command that will return the single most recent file in a directory.
未看到ls ...的限制参数
Not seeing a limit parameter to ls...
推荐答案
ls -Art | tail -n 1
不是很优雅,但它工作。
Not very elegant, but it works.
这篇关于Linux:目录中的最近的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文