Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > bash: ipconfig command not found

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-15-2003   #1 (permalink)
Just Joined!
 
Join Date: Sep 2003
Posts: 23
bash: ipconfig command not found

I am new to the linux world. i am running redhat 9 i am having trouble when trying to get my local ip address.

ipconfig -a|more

says ipconfig command not found

weird thing is i can man ipconfig

the same thing also happens with init and telinit which should be linked.
thanks for the help
imported_mblanco2000 is offline  


Reply With Quote
Old 09-15-2003   #2 (permalink)
Linux User
 
Join Date: Jun 2003
Location: Huntington Beach, CA
Posts: 390
Send a message via AIM to Dillinger Send a message via MSN to Dillinger
I've never heard of ipconfig, but if it exists you probably have to be root to run it. I know of ifconfig, which has a man page but has root only permissions. So su root then run it.
Dillinger is offline   Reply With Quote
Old 09-15-2003   #3 (permalink)
Just Joined!
 
Join Date: Sep 2003
Posts: 83
Send a message via Yahoo to kihbord
Hi,

I believe what you want to do is:

ifconfig -a | more

not

ipconfig -a | more

ipconfig is a Windows command -- ifconfig is the Linux/Unix
equivalent.

If you are not logged in as root, specify the directory where the command
is located:

/sbin/ifconfig -a |more

Hope that helps.
kihbord is offline   Reply With Quote
Old 09-15-2003   #4 (permalink)
Linux User
 
Join Date: Jun 2003
Location: Huntington Beach, CA
Posts: 390
Send a message via AIM to Dillinger Send a message via MSN to Dillinger
Hey thanks kihbord, I didn't know that I could run it as a regular user.
Dillinger is offline   Reply With Quote
Old 09-15-2003   #5 (permalink)
Linux Engineer
 
Join Date: Dec 2002
Location: New Zealand
Posts: 766
Send a message via ICQ to Hellmasker Send a message via MSN to Hellmasker
ur not meant to be able to. i can coz i suid'ed it but it wasnt avalible to normal users by default.
Hellmasker is offline   Reply With Quote
Old 09-15-2003   #6 (permalink)
Just Joined!
 
Join Date: Sep 2003
Posts: 23
Thanks

I appreciate the help. i could have sworn I did that last night but your suggestions helped out so much. i look forward to getting better at this and helping all of you. Thanks again.

MB
imported_mblanco2000 is offline   Reply With Quote
Old 09-15-2003   #7 (permalink)
Just Joined!
 
Join Date: Sep 2003
Posts: 83
Send a message via Yahoo to kihbord
Sorry for the confusion, Hellmasker is right -- you can not perform configuration tasks using ifconfig. You would have to be root.

You can only view the current configuration as a normal user.

Thanks for the note Hellmasker.
kihbord is offline   Reply With Quote
Old 09-15-2003   #8 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
You might want to consider /sbin/ifconfig | less if you need a pager, though. As long as you have a non-dumb terminal, more is kind of defunct today, don't you think?
Dolda2000 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:48 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2