SS And Netstat Error

I get an error when running either netstat or ss commands. The error is:
bash: cd: too many arguments

I get the error seeming regardless of the command parameters used (e.g. netstat -anp or netstat --help or no parameters at all).

I can successfully execute the commands on other distros, so I suspect the issue is specifically with Fedora. Also, other commands seem to work as expected, so it seems specific to accessing the network processes.

I updated the system and rebooted, but the issue remains. I am running KDE on Fedora 43. The kernel version is 6.18.3-200.fc43.x86_64.

I am a new Fedora user, and am not sure where to start with troubleshooting this issue. My questions are:

  1. Has anyone else encountered the issue and have a solution?
  2. Can anyone provide some debug tips to try and find the exact cause?

Many Thanks!

My guess is tbat you have a problem with the way bash is configured.
Did you add aliases for ss that trigger the error?
Maybe some other badh setup?

Try running as /usr/bin/ss to make it explicit what command to run.
Do you see the error message anymore?

Yes, that was it. I did not even think of that. The problem was I had an alias for netstat to use ss instead, as some distros no longer have ss. I then had inadvertantly created a new alias for ss to change to a specific project folder. Doh! Thank you so much. You da man!

Sorry, meant to say that some distros no longer have netstat. Doh!

I marked Barry’s post as the solution, its really helpful to us if you ‘like’ good posts and mark topics as ‘solved’.

Welcome to Fedora! Glad to have you here.

netstat was deprecated a long log time (10+ years?) ago with ss being the faster full featured replacement.

And ifconfig was deprected in favor of the ip command.