Question: I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running `ifconfig` returns command not found. Also running `sudo /sbin/ifconfig` returns commmand not found. I am root. The output of
`echo $PATH` is as below. 

```
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/robbert/.local/bin:/home/robbert/bin

```

Is my path normal? If not, how can I change it?

Also, I don't have an internet connection on virtual machine yet, maybe that's a factor.

Answer: 
(verified) The default minimal install of CENTOS 7 does not install net-tools.

(verified) 'ifconfig' command will become available on installing package net-tools

-How to install net-tools through yum for the not so linux experts.

1) have a root privilege shell or be on the sudo list.

2a) At a root shell prompt (#) 

```
yum install net-tools

```

2b) User account on the sudo list

```
sudo yum install net-tools

```

If the package is installed it will state so and exit yum. (Then it sounds like a path issue). 
If not installed yum will prompt the user to continue after a few local / network package checks. The install will (should) take but a moment.. presto ifconfig is now installed.

If you feel adventurous..
The equivalent of using `ifconfig` in displaying the interface / address information using ip

```
ip addr 

```
Since everyone else has already provided the answer to finding ifconfig or available alternatives, I will provide some generic tips on how to get out of this situation because this is not the first or last time one would need to get hold of a command/package/utility on their system (basically I am teaching a person how to fish :). The instructions are for RHEL/CentOS.

Scenario 1: If that command already exists on another system:

1. `which ifconfig` <- find the location of ifconfig. It might say /usr/sbin/ifconfig
2. `rpm -qf /usr/sbin/ifconfig` <- This will give you the name of the rpm (like net-tools-2.0.0)
3. `sudo yum install net-tools` <- Run this on your system to install the package.

Scenario 2: If you don't have another reference system, run the command `yum whatprovides ifconfig`. This will tell you the package name that contains the command and, if it already exists on your system, the path of the command. If the package doesn't exist, you just need to run sudo yum install to install it and you should be on your way.

These are generic instructions to find and install any package. I am not going into details about repos/other distros and other stuff here, so that you can get started.

HTH.