Thursday, February 9, 2012 2:56

LS命令按时间排序

Tagged with:
Posted by on Wednesday, December 2, 2009, 14:57
This news item was posted in Linux category and has 0 Comments so far.

ls -l -t为按时间排序显示,默认为新的排在前面,可用下面的命令更改升降序:
ls -lrt 最新的文件排在后面(升序)
ls -lnt 最新的文件排在前面(降序)

Leave a Reply

You can leave a response, or trackback from your own site.