If you are on a Linux machine and trying to run ifconfig
you may get Command not found: ifconfig
. That is because some Linux distros don't come with it bundled by default.
On Manjaro Linux which is an Arch Linux based distro you can use pacman
to install the package containing ifconfig
called net-tools
:
sudo pacman -S net-tools
On Debian based distros you can use:
sudo apt-get install net-tools
If you don't want to install net-tools
you can try using the ip
command:
ip addr
This will return the interfaces on your machine and their IP bindings.