ls folder size code example
Example 1: check folder sizes linux
du -h --max-depth=1
Example 2: linux how to see directory data usage
du -hs * | sort -rh
Example 3: ls directory size
# With disk usage --summarize and --humanreadable
du -sh *
du -h --max-depth=1
du -hs * | sort -rh
# With disk usage --summarize and --humanreadable
du -sh *