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 an Ubuntu VPS—script:
#!/bin/bash\ntail -n 50 /var/log/apache2/error.log > apache_errors.log
On Vultr run:
./errors.sh
—expect recent errors Debugs hosting issues

Back to All Tips