Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Bash: Ifconfig command not found

Posted on 2009-03-31
10
Medium Priority
?
2,779 Views
Last Modified: 2013-12-26
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?!?!
0
Comment
Question by:MDWinter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 19

Accepted Solution

by:
http:// thevpn.guru earned 2000 total points
ID: 24027772
use

/sbin/ifconfig

or when you switch to root do

su - root

instead of

su root
0
 

Author Closing Comment

by:MDWinter
ID: 31564772
su - root worked a charm, many thanks!

0
 
LVL 12

Expert Comment

by:Steve
ID: 24027796
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..

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027812
@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..
0
 
LVL 12

Expert Comment

by:Steve
ID: 24027831
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..

0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027835
true as well..
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24027841
@ Hellow Boss shakoush2000
0
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 24027860
Hey Fosiul01 ..you are doing good..great job in the ranking.
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24027894
hahaah Because you are not here!!

stop answering question!!!
Jock... EE needs you..
0
 

Expert Comment

by:azaad_a
ID: 24727295
On top of what shakous said..Try "locate ifconfig " as root which could give the output of its existence

Rgds
Az
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question