Skip to content

Instantly share code, notes, and snippets.

@xdbaqiao
Created January 7, 2015 13:38
Show Gist options
  • Save xdbaqiao/860126467d89083bb4ba to your computer and use it in GitHub Desktop.
Save xdbaqiao/860126467d89083bb4ba to your computer and use it in GitHub Desktop.
文件排序
当前目录文件从大到小排序:
ls -lS
当前目录,包含子目录文件从大到小排序
find ./ -type f -exec ls -s {} \; | sort -n -r
对当前目录下的子目录进行排序
du -b --max-depth=1 | sort -n -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment