Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么是ls按日期降序排序( 4)文件之类的简短方法?
ls
使用ls -rt | head -n 4——按时间排序,倒序,抓取前4行
ls -rt | head -n 4