How do I check if a Linux URL is accessible?
Answer
curl -Is http://www.yourURL.com | head -1 You can try this command to check any URL. Status code 200 OK means that the request has succeeded and the URL is reachable.
Answer
curl -Is http://www.yourURL.com | head -1 You can try this command to check any URL. Status code 200 OK means that the request has succeeded and the URL is reachable.