23

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?

4
  • Is the iproute package installed, are you root, or is /usr/sbin in your PATH? Commented Feb 18, 2013 at 22:04
  • 1
    ahh thanks... /usr/sbin/ss did the trick! thanks tink ;) Commented Feb 18, 2013 at 22:07
  • You're welcome :) ... can a comment be flagged as a solution? ;D Commented Feb 18, 2013 at 23:30
  • Ha I wish... if you transfer your comment as an answer ;) Commented Feb 19, 2013 at 2:30

3 Answers 3

34
sudo yum install iproute2   #RHEL
sudo apt install iproute2   #Ubuntu
2
  • 2
    While this was a possible answer to a similar problem it wasn't actually OP's problem which is hidden in the comments, as is the solution. Commented Oct 9, 2020 at 13:13
  • For Debian, the same solution as for Ubuntu works. Commented Nov 5 at 12:35
6

As per comment above: Try with the full path;

/usr/sbin/ss
1
  • cannot access '/usr/sbin/ss': No such file or directory Commented Oct 2, 2020 at 21:12
3

Install it using sudo yum install iproute

4
  • This does not provide a solution to OP's problem. Commented Oct 10, 2019 at 17:32
  • To be fair, if the question is 'how do I execute 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. Commented Oct 10, 2019 at 18:10
  • Hem, note my comments above and also the fact that this question was answered over 6 years ago and that answer was accepted. Did you intend this to be a complete answer, or as a comment on the other answer? Commented Oct 10, 2019 at 18:11
  • @jesse_b maybe this does not provide a solution to OP's problem, but this provides a solution to my problem, and google lead me here. Unfortunately, this is how web works. Commented Oct 5, 2020 at 16:13

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.