ss Interview Questions and Answers¶
Introduction¶
These questions test whether you understand what ss does, when to use it, and how to verify the result on Linux.
Beginner Questions¶
What does ss do?
It shows sockets, listening ports, and network connections.
Show a basic command.
ss -tuln
Intermediate Questions¶
Name useful options.
-t: show TCP sockets.-u: show UDP sockets.-l: show listening sockets.
Show a common administrator command.
ss -tulpn
Scenario-Based Questions¶
How would you handle ss listening ports?
sudo ss -tulpn
What would you verify afterward?
ss -s
Expected output should look similar to:
Total: 512
TCP: 18 (estab 4, closed 6, orphaned 0, timewait 6)
Practical Task Questions¶
Practice in a lab by running a safe version of the command, explaining the target, and showing the verification output.
Quick Review¶
ss -tuln
ss -tulpn
ss -s
Related Guides¶
Summary¶
A strong ss answer includes the purpose, a correct example, a common mistake, and a verification command with output you can interpret.