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 ifstat—a traffic tool—in a Bash script on an Ubuntu VPS—install:
apt install ifstat
script:
#!/bin/bash\nifstat -t 1 10 > traffic.log
On Vultr run:
./traffic.sh
—expect bandwidth stats Monitors hosting network usage

Back to All Tips