My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
195 B

#!/bin/sh
if [ "$#" -eq 0 ]; then
DIR=`pwd`
elif [ "$#" -eq 1 ]; then
DIR=$1
else
echo "Usage: $0 <path>"
exit 1
fi
du --max-depth=1 $DIR 2> /dev/null | sort -n -r | head -n20