Find the largest files or directories in Linux
Writing by shivdev on Wednesday, 25 of February , 2015 at 8:32 am
Running out of space? To find the biggest files or folders in your Linux environment in descending order, switch to the root folder and then run the du command.
cd /
du -Sh | sort -rh | head -n 20
Mac equivalent is something like
find . -type f -print0 | xargs -0 ls -l | sort -k5,5rn
Leave a comment
Category: Linux
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-
No comments yet.
You must be logged in to post a comment.