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 df—a disk tool—in a Bash script on a CentOS VPS—script:
#!/bin/bash\necho \"$(date) - $(df -h / | awk 'NR==2{print $5}')\" >> disk_trend.log
On Vultr run:
./trend.sh
—expect usage trend Tracks hosting storage over time

Back to All Tips