Results 1 to 8 of 8
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 ...
- 09-15-2003 #1Just 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
- 09-15-2003 #2Linux User
- Join Date
- Jun 2003
- Location
- Huntington Beach, CA
- Posts
- 390
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.
- 09-15-2003 #3Just Joined!
- Join Date
- Sep 2003
- Posts
- 83
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.
- 09-15-2003 #4Linux User
- Join Date
- Jun 2003
- Location
- Huntington Beach, CA
- Posts
- 390
Hey thanks kihbord, I didn't know that I could run it as a regular user.
- 09-15-2003 #5Linux Engineer
- Join Date
- Dec 2002
- Location
- New Zealand
- Posts
- 766
ur not meant to be able to. i can coz i suid'ed it but it wasnt avalible to normal users by default.
- 09-15-2003 #6Just 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
- 09-15-2003 #7Just Joined!
- Join Date
- Sep 2003
- Posts
- 83
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.
- 09-15-2003 #8Linux 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?


Reply With Quote
