I get an error when I try to execute this command on Red Hat Linux.
$ ss -s
-bash: ss: command not found
It is supposed to be for checking socket statistics. How do I execute this?
I get an error when I try to execute this command on Red Hat Linux.
$ ss -s
-bash: ss: command not found
It is supposed to be for checking socket statistics. How do I execute this?
sudo yum install iproute2 #RHEL
sudo apt install iproute2 #Ubuntu
As per comment above: Try with the full path;
/usr/sbin/ss
cannot access '/usr/sbin/ss': No such file or directory
Install it using sudo yum install iproute
ss when I'm getting "command not found"?', and the iproute package contains the ss program, then this addresses the core of the question. It does not address possible $PATH issues or explain why they think this is the right answer, but it's a least an attempt to answer the question.