Terminal/Shell/CLI Tricks

Check HTTP headers with curl

curl --head HTTP_URL
# or simply:
curl -I HTTP_URL

The -I flag (shorthand for --head) fetches only the HTTP headers from a server. This is the fastest way to inspect status codes, content types, and server metadata without downloading the actual page content.