ls time sort的相關文章
linux - How can I sort the output of 'ls' by last modified date? - Super User

linux - How can I sort the output of 'ls' by last modified date? - Super User

瀏覽:1445
日期:2025-06-25
Using only very basic unix commands: ls -nl | sort -k 8,8n -k 6,6M This worked on Linux; column 8 is "n" (numeric), column 6 is "M", month. I'm new at sort, so this answer could probably be improved. Not to mention, it needs additional options to ls and s...看更多