Well, your salvation is (be aware, the ">" sign is the command prompt):
> alias dfs='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
and then:
> cd director_name
> dfs
Don't forget about the user rights over the folders, it has a total impact on the command, you will not receive any information about a folder you are not entitled to read.
Enjoy!
Niciun comentariu:
Trimiteți un comentariu