How do I know if a URL is reachable in Linux?

How do I know if a URL is reachable in Linux?
Answer
6 Answers.
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.
 

Tìm kiếm

Back
Top