Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coddy

Networking with the Terminal

via Coddy

Overview

Learn how machines actually talk to each other, from the command line. Addresses and DNS, ports and sockets, whether a host is reachable, and HTTP by hand with curl: GET, POST, headers, status codes and HTTPS. Built for IT, support and backend work.

Prerequisites:

  • Comfortable running commands in a terminal
  • No networking knowledge required

Syllabus

How Networks Talk

  • What Is a Network
  • Clients and Servers
  • IP Addresses
  • Your First Request

Names and DNS

  • Why Names Exist
  • The Hosts File
  • Looking Up a Name
  • Record Types
  • Recap: Names

Ports and Sockets

  • What Is a Port
  • Well-Known Ports
  • Localhost
  • Listening vs Connecting
  • Recap: Ports

Is It Reachable?

  • ICMP and ping
  • Reading Ping Output
  • When Ping Lies
  • Refused or Timed Out
  • Recap: Reachability

HTTP by Hand

  • Anatomy of a Request
  • Request Methods
  • Status Codes
  • Response Headers
  • Writing a Response
  • Recap: HTTP Basics

curl in Depth

  • Seeing the Headers
  • Saving Responses
  • Custom Headers
  • Status and Timing
  • curl Exit Codes
  • Recap: curl Flags

Sending Data

  • POST with -d
  • What -d Actually Sends
  • Form Encoding
  • Sending JSON
  • PUT and DELETE
  • Recap: Writing Data

HTTPS and TLS

  • Why HTTPS
  • The Scheme Picks the Port
  • Certificates and Trust
  • When TLS Fails
  • Recap: HTTPS

Auth and Debugging

  • API Keys and Bearer
  • The User Agent
  • Timeouts and Retries
  • Reading a Failure
  • Recap: Debugging

Reviews

Start your review of Networking with the Terminal

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.