Comment on Ask HN: What are your favorite one-liner shell commands you use?Comments−UI_at_80x241yWant the HTTP status code for a server?```alias hstat="curl -Lo /dev/null --silent --head --write-out '%{http_code}\n'" $1 #HTTP status code```example:```$ hstat google.com 200```
Comments
Want the HTTP status code for a server?
```alias hstat="curl -Lo /dev/null --silent --head --write-out '%{http_code}\n'" $1 #HTTP status code```
example:
```$ hstat google.com 200```