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 who—a user tool—in a Bash script on an AlmaLinux VPS—script:
#!/bin/bash\nwho -b > reboot.log
On Hetzner run:
./reboot.sh
—expect last boot time Tracks hosting uptime

Back to All Tips