June 26, 2020
Check a site's downtime with this bash one-liner
During site downtime, the following one-liner prints the current time and tries to access the given URL every 2 seconds. Only the received HTTP headers are shown.
You may find it useful for monitoring downtime while you try to solve a problem.
while true; do date; curl -IX GET '<URL>'; sleep 2; done;