IOS Adventures
A Network and Security Engineer's Diary
Umut Destan
17 Sept 2012
List largest folders (sorted)
du -sk * | sort -rn | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done|more
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)