Bird
0
0

Which of the following is the correct syntax to list all listening TCP and UDP ports using ss?

easy📝 Syntax Q12 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to list all listening TCP and UDP ports using ss?
Ass -tuln
Bss -a
Css --listening
Dss -x
Step-by-Step Solution
Solution:
  1. Step 1: Understand option meanings

    The options -tuln mean TCP (-t), UDP (-u), Listening (-l), Numeric (-n).
  2. Step 2: Match options to goal

    To list listening TCP and UDP ports, ss -tuln is the correct syntax.
  3. Final Answer:

    ss -tuln -> Option A
  4. Quick Check:

    Listening TCP/UDP = ss -tuln [OK]
Quick Trick: Use -tuln with ss to see listening TCP/UDP ports [OK]
Common Mistakes:
  • Using -a shows all but not filtered to listening
  • Assuming --listening is a valid option
  • Using -x which is for Unix sockets, not TCP/UDP

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes