Skip to content

Disk usage on the terminal

https://fullchee-reminders.netlify.app/link/2092

du

> du -sh * | sort -hr
601M    backend-core-env
 12M    backendcore
144K    backendcore_scripts
  • du -s: summary (depth = 0)
  • -h: human readable
  • sort -r: reverse

dust

brew install dust

terminal-dust.png

dust-larger-than-500m.png

ncdu

brew install ncdu
  • interactively walk through the files sorted by size
  • can delete

ncdu-interactive-delete.png


Last update: 2023-04-24