This question already has an answer here:
I have OpenSuse 15.1 "Magic Leap" installed.
I noticed that there seems to be two conflicting commands named
When I run
which ss, I get this:
And when I try to inspect, notice this...
>* whatis ss ss (8) - another utility to investigate sockets
Which to me looks like the
iproute2 command I expect - a modern replacement to
netstat and the like. However, attempts to use this said command to for example list all active tcp connections on the machine show that the command in my default namespace is different!
See what happens with
>* ss -t su: invalid option -- 't' Try 'su --help' for more information.
Which to me looks like
ss is now an alias for
su, the super user util.
So, is this an OpenSuse "feature", bug or what?
Also, invoking the command from an unprivileged shell automatically summons
sudo and leaves me on a root shell - further hinting at the later possibility!
I don't wish to install a deprecated
netstat if there's a new, modern way to do things, but then, how do I get to the proper
As per muru's suggestion, here's the output of
>* type -a ss ss is aliased to `sudo su' ss is /usr/sbin/ss ss is /usr/bin/ss
Further, upon inspection with
file, I find that these two "versions" of ss reported above, actually are the same. See the following...
>* file /usr/bin/ss /usr/bin/ss: symbolic link to ../sbin/ss >* file /usr/sbin/ss /usr/sbin/ss: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=4cb972d442c793ac1783b508f94e7aaceaf83088, stripped >* /usr/sbin/ss --version ss utility, iproute2-ss170705
So, at the same time, ss seems to be an alias for
sudo su, yet upon inspection, seems to be the
iproute2 command. Weird.