du -h -d 1 .
Ordering this by size can be done by;
du -h -d 1 . | sort -h
Adding ‘r’ in the sort options (… | sort -rh ) will sort it in reverse order (largest at the top)
The ramblings of a software developer
du -h -d 1 .
Ordering this by size can be done by;
du -h -d 1 . | sort -h
Adding ‘r’ in the sort options (… | sort -rh ) will sort it in reverse order (largest at the top)