LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-08-2003, 10:35 PM   #1
slice4e
Member
 
Registered: Apr 2003
Location: Daytona Beach
Posts: 30

Rep: Reputation: 15
My commands dont work. ifconfig ?


I am a complete newbe and I would really appreciate your help.
I am trying to use the ifconfig command and it just gives me
a message " bash command not recognized" or something like that. When I type "man ifconfig" I am able to see the manuals , but I cannot run the command. And this is not the only command that I know I am supposed to have but I cannot run .
Do I have to be is a special directory to run it?


I just tried "lspci" and it did not work

Thanks for your time and help
 
Old 05-08-2003, 10:38 PM   #2
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
try '/sbin/ifconfig' or '/usr/sbin/ifconfig'

You might also need to be root to do that on your system.... what distro are you using?
 
Old 05-08-2003, 10:40 PM   #3
slice4e
Member
 
Registered: Apr 2003
Location: Daytona Beach
Posts: 30

Original Poster
Rep: Reputation: 15
i will try that. i am using RH 9
 
Old 05-08-2003, 10:43 PM   #4
slice4e
Member
 
Registered: Apr 2003
Location: Daytona Beach
Posts: 30

Original Poster
Rep: Reputation: 15
/sbin/ifconfig works. I do not have to be the root.
Thanks !
Should I use the /sbin for all these commands?
 
Old 05-08-2003, 10:52 PM   #5
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
You are going to need to add the '/sbin/' in front of any program that is in that directory ("ls /sbin/" to see what's in there).

You can also add that directory to your PATH variable, which dictates where the shell is going to look for executables (do a "echo $PATH" to see what it is currently set to).
 
Old 05-08-2003, 11:51 PM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
What and where do you edit the path.../etc/path or something?
THanx...

-twantrd
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig amounst other commands doesn't work steveman2000 Linux - Newbie 6 10-21-2005 04:15 PM
keyboard commands and mozilla dont work Lleb_KCir Linux - Software 2 10-13-2004 06:55 PM
commands, some work some dont? Balkman Linux - Newbie 5 07-23-2004 11:58 AM
Commands dont work, even as root king_nothingzzz Linux - General 2 01-22-2004 03:07 PM
ifconfig dont work with new kernel neozero62 Linux - Networking 4 11-05-2003 08:47 AM


All times are GMT -5. The time now is 03:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration