Terminal Weather With wttr.in
Fetch a compact current-conditions line for any city using curl.
01Command
$ curl "wttr.in/Beijing?format=3"02What it does
wttr.in is a free weather service that renders forecasts as plain text. The ?format=3 query returns a compact one-line summary; omit it for a full ASCII forecast, and add ?0 for the current day only. It needs no API key.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- chubin/wttr.inEvidence: Documents wttr.in one-line format (?format=3), units and location paths.
Last verified: 2026-09-20 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.