Do you want to know which sites on your server are the largest sites? There’s an easy way to figure that out!
Step 1: SSH Into Your Server #
You need to run the linux du command directly on the server which means SSH.
So, login to your server as root/sudo via ssh.
Learn more about ssh logins for DevelopVIDeploy servers
Step 2: Navigate To The /var/www Folder #
cd /var/www
This is the root folder for all your sites.
Step 3: Run This DU Command #
sudo du -h --max-depth=1 | sort -hr
The output should look something like this:
121M . 61M ./demo22.vnxv.com 61M ./demo21.vnxv.com 5.0K ./html
The first column contains the size of the folder – in the above example, the entire www folder is 121 megabytes and the two sites are each 61 megabytes.
Bonus: Run It For Your Backups Folder #
You can use the same technique to find out which backups are taking up the most space on your server.
Navigate to the backup folder
cd ~/.wp-backup
Run the same DU command described earlier above:
sudo du -h --max-depth=1 | sort -hr
More Topics In Articles #
- A Guide to SPF, DMARC & DKIM for WordPress
- WordPress POST Object Attributes and Variables
- Our Release Cycle: Fast Ring & Slow Ring Releases
- Sizing Your WordPress Servers
- Deployment Options For DVI
- Add Your Existing SSH Key To A Root User Account
- All About WP Crons
- Setup Low Disk Space Alerts
- Identify The Largest Files In The WordPress Uploads Folder
- Identify The Largest Backups On Your Server
- SSL Rate Limits
- Unable To Create Files (Even With Available Diskspace)
- Managing Linux Updates
- How To Lock A Linux User
- All About Ubuntu LTS Versions
- Rapid Reset HTTP/2 & DevelopVIDeploy