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 netstat—a network tool—in a Bash script on a Debian VPS—install:
apt install net-tools
script:
#!/bin/bash\nnetstat -an | grep :80 | wc -l > apache_conn.log
On Linode run:
./conn.sh
—expect connection count Tracks hosting web traffic

Back to All Tips