Forrest logo
back to the ss tool

ss:tldr:2cb15

ss: Show all TCP sockets listening on the local 8080 port.
$ ss -lt src :${8080}
try on your machine

The command "ss -lt src :${8080}" is used to display active internet connections associated with a specific source port number, in this case, port number 8080.

Here's the breakdown of the command:

  • "ss" is a command that stands for "socket statistics". It is used to display information about active network connections on a Linux system.

  • "-lt" are the options to filter and format the output of the ss command. "-l" shows only listening sockets (open ports) and "-t" shows only TCP connections.

  • "src" is a filter to specify the source address or port number of the connections to display.

  • ":${8080}" is the specific source port number to filter the connections. "${8080}" is a variable that represents the value of port number 8080.

Overall, the command is used to show active TCP connections and listening sockets with a source port number of 8080.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ss tool