-I sends a HEAD request and prints only the response headers, so you can confirm nginx is answering on port 80. Check the Server and Date headers to verify the response came from nginx rather than another service. Add --max-time to avoid hanging if nothing is listening.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.