command has been deprecated and thus missing by default on Debian Linux, starting from Debian stretch.
-bash: ifconfig: command not found
The new and recommended alternative for examining a network configuration on Debian Linux is
command. For example to use
command to display a network configuration run the following:
# ip address
command can be abbreviated to:
# ip a
If you still prefer to use
as part of your daily sys admin routine, you can easily install it as part of the
Privileged access to your Debian Linux system is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
Install ifconfig Command
# apt-get install net-tools
command is now available.