LFCS Networking Practice Question
Which legacy command can still be used to view the IPv4 routing table on a modern Linux system?
⚠ Common exam trap
Many candidates confuse 'legacy command' with 'modern command' and pick `ip route show` (Option A) because it is the current standard, but the question explicitly asks for a legacy command that still works.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
netstat -r
`netstat -r` is a legacy command that reads the kernel routing table from `/proc/net/route` and displays it in a human-readable format. It remains available on modern Linux systems for backward compatibility, even though its use is discouraged in favor of `ip route`. The `-r` flag specifically instructs `netstat` to show the routing table.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ip route show
Why it's wrong here
This is the modern command, but the question asks for a legacy command.
- ✗
route -n
Why it's wrong here
route is also legacy but may not be installed by default on some distributions.
- ✗
arp -a
Why it's wrong here
This command shows the ARP table, not the routing table.
- ✓
netstat -r
Why this is correct
netstat -r is a legacy command that still works on most systems.
Go deeper
Related to this question
About these practice questions
One of 507 original LFCS practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.