LinuxQuestions.org
Visit Jeremy's Blog.
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 01-20-2003, 07:35 PM   #1
jkp
LQ Newbie
 
Registered: Jan 2003
Location: El dorado Hills CA.
Distribution: redhat 9.0
Posts: 10

Rep: Reputation: 0
command not found


back again ! In an effort to install my modem Ihave found some commands the get the "bash: cmd: command not found " message.
The two that I have found so far are insmod and lspci.
both exist in /sbin and I have tried to run them as both a user and also su'ing to root. I don't get it. thanks for the help in advance. ...jp...
 
Old 01-20-2003, 07:39 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
even when you su you still assume the regular users path, so try this: "su - root" then try...

If it still doesn't work then type "echo $PATH" when you are logged in as root and make sure /sbin is in there. if not try "PATH=$PATH:/sbin:/usr/sbin" and add it to ~/.bashrc to make it permanent.
 
Old 01-20-2003, 10:40 PM   #3
bulin
LQ Newbie
 
Registered: Sep 2002
Distribution: rh7.2&mdk9.0
Posts: 9

Rep: Reputation: 0
You can also run it like that:
./insmod
 
Old 01-21-2003, 03:26 PM   #4
jkp
LQ Newbie
 
Registered: Jan 2003
Location: El dorado Hills CA.
Distribution: redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
thanks

Thanks to both of you!
 
  


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
command not found murshed Linux - Newbie 8 11-22-2007 05:51 AM
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
command not found ginda Linux - General 3 07-16-2005 05:15 PM
Command Not Found But I See It!! dmorrell Linux - Software 8 01-22-2005 02:12 PM
Command not found nfis Linux - Software 9 11-26-2003 12:00 AM


All times are GMT -5. The time now is 03:37 PM.

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