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 tail—a log tool—in a Bash script on a Debian VPS—script:
#!/bin/bash\ntail -n 50 /var/log/nginx/error.log > nginx_errors.log
On Linode run:
./errors.sh
—expect recent errors Debugs hosting web issues

Back to All Tips