I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000
to output information about an active port. Any suggestions on how to use a tool like ss
to get the process id?
I have a localhost running on port 8000, but ss -a | grep 8000
does not output anything. Running fuser 8000/tcp
outputs the port's process, as does netstat -tulpn | grep 8000
. Why doesn't the ss
command output anything about my port?