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/* > dir_sizes.log
On Hetzner run:
./sizes.sh
—expect directory sizes Manages hosting storage

Back to All Tips