LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   complete noob question. "command not found" "command not found" (https://www.linuxquestions.org/questions/linux-newbie-8/complete-noob-question-command-not-found-command-not-found-4175474837/)

jeanlucpicard 08-27-2013 01:04 AM

complete noob question. "command not found" "command not found"
 
hi! I'm very new to Linux but I've been a wintel admin for a number of years. Frankly I'm intimidated by many of the questions even in the newbie forum. I will be grateful for your patience and help.

Running Slackware.

Most commands I enter in Linux are met with the "command not found" error. I understand I can run linux commands by learning where the executable files are and pointing to the proper directory every time but I'm hoping to save time by telling Linux to search in all the common directories for a command before telling me "command not found".

For example entering "ss" when I'm in my home directory should run "ss" rather than kicking back an error.

How can I accomplish this?

pan64 08-27-2013 01:22 AM

I do not know what is ss (there is no such command), so probably the message is ok.
Otherwise there is a variable, named PATH and you should set it properly to find your commands
https://www.linux.com/learn/docs/ldp/682-Path

jeanlucpicard 08-27-2013 01:33 AM

Thank you! this is just what I needed.

It turned out I needed to add some directories to the default path in /etc/profile

zhjim 08-27-2013 02:12 AM

@pan64
ss comes with iproute2. Its the new netstat.

pan64 08-27-2013 02:14 AM

Quote:

Originally Posted by zhjim (Post 5016687)
@pan64
ss comes with iproute2. Its the new netstat.

I see. Thanks.


All times are GMT -5. The time now is 06:18 PM.