du with colored bar graph

, par  point_to_null (http://pointtonull.esdebian.org) , popularité : 2%

$ 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/"...

JPEG - 2.5 kio

Diff your entire server config at ScriptRock.com

Voir en ligne : http://www.commandlinefu.com/comman...

Publications Derniers articles publiés

Sites favoris Tous les sites

84 sites référencés dans ce secteur