Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-21-2004, 03:50 AM   #1
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
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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
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
export PATH=$PATH:/sbin:/usr/sbin
Hope that was clear.
Old 10-21-2004, 05:50 AM   #3
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


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 Does Not Exist vi0lat0r Linux - Newbie 5 03-19-2004 10:25 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:19 AM.

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