Linux - ls 指令按檔案大小排序


-S  (Sort)

#ls -Sl   (由大到小排序, 小寫的L)
#ls -Slr  (由小到大排序)
#ls -h     (human readable format, 檔案大小會以 KB, MB, GB 等顯示)


#ls -R     (Recursive, 即顯示子目錄結構)

#ls -lt     (從新到舊排序)
#ls -ltr    (從舊到新排序)




留言

Back to Title

熱門文章

Back to Title