Linux:目录中的最新文件。
16lz
2021-01-22
Looking for a command that will return the single most recent file in a directory.
查找将返回目录中最近文件的命令。
Not seeing a limit parameter to ls...
没有看到ls的极限参数……
18 个解决方案
#1
181
ls -Art | tail -n 1
Not very elegant, but it works.
不是很优雅,但是很有效。
更多相关文章
- 获取输出为管道的命令的pid
- gcc常用命令介绍
- Linux的五个文件查找命令:find,locate,whereis,which,type
- Linux--常用命令--last
- linux命令行程序
- 【Linux高频命令专题(20)】du
- linux 中 开放端口,以及防火墙的相关命令
- Linux 删除文件夹和文件的命令
- shell脚本let命令在windows下编辑后上传到Linux一直报错