Find largest directories one-liner
Find the directories consuming the most hard drive space.
Whole hard drive big file search:
du -hd1 / 2>/dev/null | sort -rh | head
Home directory big file search:
du -hd1 ~ 2>/dev/null | sort -rh | head
“ncdu” is a widely-available graphical Ncurses based program showing the largest files. NCDU is more user-friendly than the plain text method above. NCDU allows deleting files interactively. When using on WSL, specify the desired drive like (for C: in this example):
ncdu /mnt/c