LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-21-2004, 03:50 AM   #1
Pedal2Metal
LQ Newbie
 
Registered: Oct 2004
Location: South San Francisco, Ca.
Distribution: 7.3
Posts: 23

Rep: Reputation: 15
Bash says that config (ifconfig, chkconfig and others) don't exist


I'm new to Linux and I am trying to get my server/workstation going. I am having trouble connecting to my Lan and Wan. I believe I configured all the addresses correctly. But every time I try to use any config commands to try to locate problems and determine if network cards and connections are working properly, Bash tells me that the commands don't exist--???? I have been trying to use ifconfig and chkconfig. Is it a problem with my Redhat 7.3 distro or some other issue??
 
Old 10-21-2004, 04:45 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
In Linux there is what is called a PATH. It is a list of directories where programs are looked for when you type them in at the command line. For instance the command ls is in /bin. If you do a
Code:
echo $PATH
you will notice that directory is in your PATH.

Most system config commands are in /sbin and /usr/sbin. These directories are not by default in a users PATH but are in root's.

If you "su -" to root then those commands can be accessed with a ifconfig. But a normal user has to do /sbin/ifconfig

If you want those commands in your PATH then add this to ~/.bashrc
Code:
export PATH=$PATH:/sbin:/usr/sbin
Hope that was clear.
 
Old 10-21-2004, 05:50 AM   #3
Pedal2Metal
LQ Newbie
 
Registered: Oct 2004
Location: South San Francisco, Ca.
Distribution: 7.3
Posts: 23

Original Poster
Rep: Reputation: 15
Thank. It was very helpful
 
  


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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
chkconfig not found by bash, but is installed JimBass Linux - Newbie 4 05-09-2010 01:32 PM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
PPPoE config with ifconfig Dainiuxas Linux - Networking 3 03-15-2005 04:26 PM
Config.in Does Not Exist vi0lat0r Linux - Newbie 5 03-19-2004 10:25 PM


All times are GMT -5. The time now is 07:04 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