LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2013, 01:04 AM   #1
jeanlucpicard
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 08-27-2013, 01:22 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,352

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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
 
1 members found this post helpful.
Old 08-27-2013, 01:33 AM   #3
jeanlucpicard
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you! this is just what I needed.

It turned out I needed to add some directories to the default path in /etc/profile
 
Old 08-27-2013, 02:12 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
@pan64
ss comes with iproute2. Its the new netstat.
 
1 members found this post helpful.
Old 08-27-2013, 02:14 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,352

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Originally Posted by zhjim View Post
@pan64
ss comes with iproute2. Its the new netstat.
I see. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 9 07-17-2017 12:27 PM
Centos Server Failed @ Bootup: Missing "/sbin/blkid" & "fsck" command not found beagle7 Linux - Newbie 4 08-24-2012 01:33 AM
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 07:54 AM
LFS6.3 livecd "ls : command not found" error after "su - lfs" rotu Linux From Scratch 2 06-19-2008 03:59 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration