Wednesday, May 20, 2009

Two of the most important commands in UNIX using du

1.
Sorting files with the size

"du -sm *|sort -n" (in mb)

2.
Sorting directories with the size

"du -k --max-depth=1 | sort -n | cut -f2 | xargs -d '\n' du -sh"



0 comments: