Bird
0
0

You want to check if your computer's network interface has an IP address assigned. Which command helps diagnose this?

hard📝 Application Q15 of 15
Linux CLI - Networking Commands
You want to check if your computer's network interface has an IP address assigned. Which command helps diagnose this?
Aping 127.0.0.1
Bip addr show
Cnslookup google.com
Dtraceroute 8.8.8.8
Step-by-Step Solution
Solution:
  1. Step 1: Understand what each command does

    ip addr show displays network interfaces and their IP addresses. ping 127.0.0.1 tests local network stack. nslookup checks DNS resolution. traceroute traces route to a host.
  2. Step 2: Identify command to check IP address

    Only ip addr show directly shows assigned IP addresses on interfaces.
  3. Final Answer:

    ip addr show -> Option B
  4. Quick Check:

    Check IP address = ip addr show [OK]
Quick Trick: Use ip addr show to see IP addresses on interfaces [OK]
Common Mistakes:
  • Using ping to check IP assignment
  • Confusing DNS lookup with IP address check
  • Using traceroute for interface info

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes