Advanced·Troubleshoot the network
ss: View sockets and listening ports
Syntax
ss [-tulpna]Options
-t- TCP
-u- UDP
-l- monitor
-p- process
-n- Numeric address
-a- all
Examples
ss -tulpnUsage and sandbox support
Options can be combined; the sandbox displays fixed port snapshots and nginx status, without filtering item by item.
Hands-on exercises
- Who occupies the port?Advanced
Related commands
ipQuery address and routingpingCheck host connectivitydigQuery DNS recordsnslookupQuery host addresscurlRequest URL or download contentwgetDownload filesshLog in to the remote machinescpCopy files via SSHhostQuery DNStracerouteProbing network routestracepathDetection path and MTUmtrContinuously observe routing and packet lossncTest connection or listening portsocatConnect data streams to socketstcpdumpCapture network packetsnmapDetect authorized host portethtoolQuery network interface informationnmcliManage NetworkManager connectionssftpTransfer files interactively through SSHssh-keygenGenerate SSH keyssh-copy-idInstall the SSH public keyopensslCheck TLS with certificate