Directory Size Lister/Sorter
Have you ever wondered which directories and trees take up all the diskspace? Questions like this come during pruning/archiving, backup, and numerous other activities. Make the following oneliner script (I call it dirsizes) to find out:
Code:
du -sm $(find $1 -type d -maxdepth 1 -xdev) | sort -g
No comments:
Post a Comment