Green YGreck Guides FR
🐧 LinuxBeginner⏱ 10 min5 steps

Free up disk space

Find what takes up room and clean without risk.

  1. See the space per partition:
    df -h
  2. Explore big folders interactively:
    sudo apt install ncdu
    ncdu /
  3. Clean the package cache:
    sudo apt clean
    sudo apt autoremove
  4. Shrink the systemd logs:
    journalctl --disk-usage
    sudo journalctl --vacuum-time=7d
  5. Also empty the trash (~/.local/share/Trash) and old downloads.