↑↓ move Enter open Esc close

Cheat sheet · 13 commands

Networking

Networking problems come in layers: is the host reachable, does the name resolve, is the port open, what does the server answer. There is one command per layer, in that order, on this sheet.

The 3 you will use every day

Your addresses, one line per interface

Listening ports with the owning process

Response headers only

The full sheet

  • Is it reachable, and how farguide ›
  • Your addresses, one line per interfaceguide ›
  • Routing table and default gatewayguide ›
  • Which interface and source IP would be usedguide ›
  • Listening ports with the owning processguide ›
  • Current established connectionsguide ›
  • Resolve a nameguide ›
  • Ask a specific resolver (bypass your cache)guide ›
  • Where the domain's mail goesguide ›
  • Response headers onlyguide ›
  • Just the status codeguide ›
  • Send JSON to an APIguide ›
  • Download, resuming if interruptedguide ›
Practise these for real in the interactive course, or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.