Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Use du—a disk tool—in a Bash script on an Ubuntu VPS—script:
#!/bin/bash\ndu -sh /var/www > web_usage.log
On DigitalOcean run:
./usage.sh
—expect web directory size Manages hosting storage

Back to All Tips