Support Center > Search Results > SecureKnowledge Details
The output of the 'ss -a' command does not show all ports and their current state
  • Output of 'ss -t -a' command (stands for "socket statistics") does not provide output for all TCP sockets (as compared with the output of 'netstat -an' command.

  • Output of 'ss -f inet -t' command prints "ss: no socket tables to show with such filter".


The 'ss -t -a' command replaces the 'netstat -na' command and is supposed to display all TCP ports in use and their current state by reading the contents of /proc/net/tcp file. However, the 'ss -t -a' command reads only the first 4050 characters ('wc -c /proc/net/tcp').

Note: To view this solution you need to Sign In .