Bird
0
0

You want to list all UDP sockets that are listening and show the process using ss. Which command is correct?

hard📝 Application Q8 of 15
Linux CLI - Networking Commands
You want to list all UDP sockets that are listening and show the process using ss. Which command is correct?
Ass -aunp
Bss -ltnp
Css -tunp
Dss -ulpn
Step-by-Step Solution
Solution:
  1. Step 1: Identify flags for UDP listening with process info

    -u UDP, -l listening, -p process info, -n numeric addresses.
  2. Step 2: Combine flags correctly

    ss -ulpn lists UDP listening sockets with process info and numeric addresses.
  3. Final Answer:

    ss -ulpn -> Option D
  4. Quick Check:

    UDP listening with process = ss -ulpn [OK]
Quick Trick: Use -u (UDP), -l (listening), -p (process), -n (numeric) together [OK]
Common Mistakes:
  • Using -t for TCP instead of UDP
  • Omitting -p loses process info
  • Using -a shows all, not just listening

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes