Here is how its done:
du -a (directory) | sort -n -r | head -n 10This will list all the files in the directory specified, sorts them and lists the 10 files that takes up maximum size.
Easy, right?
du -a (directory) | sort -n -r | head -n 10This will list all the files in the directory specified, sorts them and lists the 10 files that takes up maximum size.
A Linux Admin's WeBlog! Blak Magik is Designed by productive dreams for smashing magazine Bloggerized by Ipiet The Blog Full of Games © 2008
0 comments:
Post a Comment