Linux sorts the contents of the current folder by size

Original link: http://i.lckiss.com/?p=8251

I usually don’t use it, I only remember it when it’s full, and I need to back it up.

 du -h --max-depth=1 ./ | sort -hr
 caches > du -h --max-depth=1 ./ | sort -hr 09:46:29
42G ./
26G ./build-cache-1
7.2G ./transforms-3
3.5G ./7.3.3
3.2G ./jars-9
1.2G ./modules-2
529M ./7.4
356M ./transforms-2
20M ./7.5
9.8M ./transforms-1
5.6M ./journal-1

For the gradle thing, the 76G build-cache-1 was deleted yesterday, and today there are 26G, and the 7.2G transforms-3, Android … served.

This article is transferred from: http://i.lckiss.com/?p=8251
This site is only for collection, and the copyright belongs to the original author.