Linux Survival Basics
Read-onlyShow Linux Route Table
You need the current route table and default gateway.
Command
ip route
Before you run this
System impact: Read-only. Low when scoped to the shown target.
When not to use it: Do not add routes before checking interface and NetworkManager state.
Expected output
Routes including `default via ...` when a default route exists.
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 when a host has network but cannot reach outside networks.
When not to use it
Do not add routes before checking interface and NetworkManager 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.
ip routeip route
next steps
Related commands
Show Interface Addresses
A route problem may actually be an address problem.
ip addr
Show Failed Mount Units
systemd often records mount failures as failed units.
systemctl --failed --no-pager
Show Recent Server Reboots
Confirm whether the server actually rebooted and when.
last -x reboot | head -5
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'
Show NetworkManager Device State
NetworkManager may know why the interface is disconnected.
nmcli device status
next diagnostic step
Where to go from this command
- Default route missing hub Use when outbound routing fails.
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.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.