Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Over $120 Million in Payouts!
Learn to Day Trade Futures!

Category: Bash

Use awk—a text processor—in a Bash script on a Debian VPS—script:
#!/bin/bash\ntail -n 100 /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c > req.log
On Linode run:
./req.sh
—expect IP counts Tracks hosting traffic

Back to All Tips