Here's a preview from my zine, Bite Size Networking!! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!
read the transcript!
panel 1
two stick figures talking. the first one is bald and looks unhappy. the second one has short curly hair and is smiling.
person 1: I can’t start my server because it says something is using port 8080!
person 2: 1. Use ss (“socket statistics”) to find the process ID using the port 2. Kill the other process!
* tuna, please! *
$ ss -tunapl
(the ‘a’ here doesn’t do anything)
This is my favourite way to use ss! It shows all the running servers.
-n
use numeric ports (80 not http)
-P
show PIDs using the socket
TONS of information
-i -m -o
(-i is in a spiky bubble, -m is in a cloud bubble, and -o is in a heart)
which sockets ss shows
listening or connections (non-listening/established)?
default: connections
-1: listening
-a: both
which protocols?
default: all
-t: TCP
-u: UDP
-X: unix domain Sockets
netstat
netstat -tunapl and ss -tunap! do the same thing
netstat is older and more complicated. If you’re learning now I’d recommend ss!
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!