0

du -sh 怎样按大小排序

jane created at6 years ago view count: 2548
report
回复
0

使用sort -h

du -hs * | sort  -h
6 years ago 回复
0
neo #
when in doubt, use brute force

macOS 下面使用下面方法

brew install coreutils
du -hs * | gsort -h
6 years ago 回复