A Linux administrator is troubleshooting a network connectivity issue on a server. The administrator suspects a problem with the Address Resolution Protocol (ARP) cache, where an IP address may be incorrectly mapped to a MAC address. Which of the following commands should be used to display the current ARP cache in a simple numeric format, without attempting to resolve hostnames?
The correct command is arp -n. The arp command is used to display and manipulate the system's ARP cache. The -n flag (numeric) instructs the command to show numerical addresses instead of trying to resolve symbolic hostnames, which is useful for quick diagnostics and avoiding delays from DNS lookups.
ip link show displays information about network interfaces, such as their state and MAC address, but it does not show the ARP cache.
ss -tn is used to display TCP sockets, with the -t flag specifying TCP and the -n flag for numeric output. It shows active connections, not the ARP cache.
ping is a utility to test connectivity to a host but does not display the ARP cache itself. While a successful ping can create an entry in the ARP cache, its purpose is not to view the cache.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the ARP cache in networking?
Open an interactive chat with Bash
Why is the `-n` flag used with the `arp` command?
Open an interactive chat with Bash
How does the ARP cache differ from a routing table?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .