Junior — Middle
Can you explain what the 'ss' command in Linux means and what it is used for?
sobes.tech AI
Answer from AI
The ss command in Linux is used to display information about network connections, sockets, and ports. It is a more modern and faster alternative to the netstat command.
With ss, you can see:
- Active TCP/UDP connections
- Socket states
- Used ports
- Information about processes holding connections
Example usage:
ss -tuln
It will display a list of all listening TCP and UDP ports with numbers and without resolving names.
This is useful for diagnosing network issues and monitoring activity on a server.