實用 Linux 小工具

找出 File System 中最大的檔案

1
2
3
4
5
# Type the following command at the shell prompt to find out top 10 largest file/directories:
du -a /var | sort -n -r | head -n 10
# If you want more human readable output try (GNU user only):
du -hsx * | sort -rh | head -10