Linux
Low risk
Administrator required
List listening ports on Linux
Displays the TCP and UDP listening as well as associated processes.
sudo ss -tulpn
When should you use it?
Use this to confirm that a service is listening on the expected port and interface.
What the script does
- t and u select TCP and UDP.
- l limits the output to listening sockets.
- p shows the process and n prevents name resolution.
Precautions
- sudo may ask for the administrator password.
Rollback
No changes are made.