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 a Debian VPS—script:
#!/bin/bash\ndu -sh /var/www > dir_usage.log
On DigitalOcean run:
./usage.sh
—expect size Monitors hosting directory usage

Back to All Tips