du with colored bar graph
, popularité : 4%
$ du -x —max-depth=1|sort -rn|awk -F / -v c=$COLUMNS ’NR==1t=$1 NR>1r=int($1/t*c+.5) ; b="\033[1 ;31m" ; for (i=0 ; i<r ; i++) b=b"#" ; printf " %5.2f%% %s\033[0m %s\n", $1/t*100, b, $2’|tac
A more efficient way, with reversed order to put the focus in the big ones. View this command to comment, vote or add to favourites View all commands by point_to_null
http://www.commandlinefu.com/"...
Diff your entire server config at ScriptRock.com
Voir en ligne : http://www.commandlinefu.com/comman...