Nguyễn Ngọc Tâm Quyên
Member
How can I tell which files are consuming more space?
Answer
Linux find largest file in directory recursively using find
Answer
Linux find largest file in directory recursively using find
- Open the terminal application.
- Login as root user using the sudo -i command.
- Type du -a /dir/ | sort -n -r | head -n 20.
- du will estimate file space usage.
- sort will sort out the output of du command.
- head will only show top 20 largest file in /dir[/B]