Link to home
Start Free TrialLog in
Avatar of MDWinter
MDWinter

asked on

Bash: Ifconfig command not found

Hi,

I have just downloaded the virtual applicance for groundworks monitor community edition.

I don't want to be restricted to using the console of the machine it's located on - I would like to point the web browser on my machine to the applicance, so need to know it's IP address.

I opened a terminal window and typed ifconfig (which is what I seem to recall as being the linux equivalent to ipconfig) but get told bash: ifconfig: Command not found.

How can I find the IP of my applicance?!?!
ASKER CERTIFIED SOLUTION
Avatar of http:// thevpn.guru
http:// thevpn.guru
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MDWinter
MDWinter

ASKER

su - root worked a charm, many thanks!

you dont need to su to root to run the /sbin/ifconfig

just type it from any prompt and it'll give you the IP information for your active interfaces..

@Psycho

on RH or related systems..fedora..centos etc...normally when you switch from a regular user to root ..you will still have the env variables of the regular user this will not include the sbin directory and he wont be able to get ifconfig or any other sbin command to work...


as for your suggestion he tried it ...and it did not work..that is why he did ask in first place. :)
It would work using either sudo..or if you logon as root in the first place..
no.. he said he just ran 'ifconfig'

i agreed with you that you need to run the /sbin/ifconfig..

you DONT however have to SU to root to run it..

true as well..
@ Hellow Boss shakoush2000
Hey Fosiul01 ..you are doing good..great job in the ranking.
hahaah Because you are not here!!

stop answering question!!!
Jock... EE needs you..
On top of what shakous said..Try "locate ifconfig " as root which could give the output of its existence

Rgds
Az