LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ipconfig (https://www.linuxquestions.org/questions/linux-newbie-8/ipconfig-294536/)

sencer11 02-24-2005 07:43 PM

ipconfig
 
Hello im pretty new to linux, i have been reading forums and learning for past few days. Today have been doing research on how to setup up the internet. I do however have a problem , i cant seem to access "ipconfi" or "lsmod" from the root host. I keep getting bash: command not found.

i found a way to access ldmod by typing "/sbin/lsmod"but i still cant seem access ipconfg even though i see it in green text when i do "ls /sbin/

Im guessing my directories are messed up somehow, any help would be appretiated.
Thanks.

DrOzz 02-24-2005 07:46 PM

did you actually try typing :
Code:

/sbin/ifconfig
at a prompt?

sencer11 02-24-2005 07:48 PM

i tried in terminal

Where would i go to get to prompt?

sorry forgot to mention im on Red Hat 9

DrOzz 02-24-2005 07:55 PM

the terminal is a prompt ...
anyways ... your saying that when you go to a terminal
and you type :
Code:

/sbin/ifconfig
it says "command not found" ?

cl2imson 02-24-2005 07:56 PM

/sbin/ifconfig works for me.

sencer11 02-24-2005 07:56 PM

yes

DrOzz 02-24-2005 07:59 PM

actually i am an idiot, and just noticing this now ...
the title of your thread, and that you keep calling it:
Code:

ipconfig
your supposed to be typing :
Code:

ifconfig

ipconfig is for windows ;)

sencer11 02-24-2005 08:02 PM

heh im an idiot too for mistyping it.
thanks for the help

/sbin/ifconfig works

so i have to go through sbin everytime to get to it?
i have seen some people just typing ifconfig and it would come up.

cl2imson 02-24-2005 08:07 PM

if you are invoking that as root, then /sbin should be in your path. if you are running as a normal user, then the full path is required.

if this annoys you, you can always add /sbin to your path to the /home/yourusername/.bash_profile file.

sencer11 02-24-2005 08:08 PM

appretiate your help guys now time to setup wireless adapter. thats another 4 days heh )


All times are GMT -5. The time now is 09:29 PM.