Back to commands

Linux Survival Basics

Read-only

Show Interface Addresses

You need interface state and assigned addresses.

Command

ip addr

Before you run this

System impact: Read-only. Low when scoped to the shown target.

When not to use it: Do not restart networking before recording current interface state.

Expected output

Interfaces with state, MAC, IPv4, and IPv6 addresses.

System impact

Read-only. Nothing changes. The command reads current state and prints diagnostic evidence.

Recovery / rollback: no state is changed.

When to use it

Use after route checks.

When not to use it

Do not restart networking before recording current interface state.

Example run

Commands shown

These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.

  1. ip addr
  2. ip addr

next steps

Related commands

Linux Survival Basics Read-only

Show Linux Route Table

No default route means packets have nowhere to leave.

ip route
Linux Survival Basics Read-only

Show the Real User Cron Jobs

Cron problems often hide behind comments, blank lines, and copied folklore.

crontab -l | sed -n '/^[[:space:]]*#/d;/^[[:space:]]*$/d;p'
Linux Survival Basics Read-only

Show HTTPS Certificate with curl

curl can show the certificate path a client actually sees.

curl -Iv https://example.com/ 2>&1 | sed -n "/SSL connection/,/expire date/p"
Linux Survival Basics Read-only

Check Domain A Records

A renewal can fail because DNS points elsewhere.

dig +short example.com A

next diagnostic step

Where to go from this command

Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.