↑ ↓ select, Enter open, Esc close

Disk usage of all webspaces under /var/www/vhosts

root@server
du -sh /var/www/vhosts/*/ 2>/dev/null | sort -rh | head -20

Calculates the size of each subscription directory under /var/www/vhosts and lists the largest first. Useful when the disk is filling up and you need to find out quickly which webspace is responsible.

Note: The system folder contains the logs of all domains and can grow large as well. Mailboxes are not stored here but under /var/qmail/mailnames.

Also searched as

  • which customer uses the most disk space plesk
  • vhosts folder too large
  • disk usage per domain plesk

Related one-liners

All in Plesk

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.