← Useful Tips
Linux / WSLLinux

du -sh * | sort -h: Find which folders are using the most disk space

Use du -sh * | sort -h to find which folders are using the most disk space. It is especially handy when you live in terminals and repeat long commands.

du -sh * | sort -h

Why it helps

Use du -sh * | sort -h to find which folders are using the most disk space. It is especially handy when you live in terminals and repeat long commands.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
du -sh * | sort -h: Find which folders are using the most disk spacedu -sh * | sort -hfind which folders are using the most disk spacehow to find which folders are using the most disk spaceLinux / WSL find which folders are using the most disk space

Related tips