- Lubos Rendek
- System Administration & Configuration
command has been deprecated and thus missing by default on CentOS Linux.
bash: /usr/sbin/ifconfig: No such file or directory
The new and recommended alternative for examining a network configuration on CentOS 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
command you can easily install it as part of the
Privileged access to your CentOS Linux system is required.
- # - requires given command to be executed with root privileges either directly as a root user or by use of
- $ - given command to be executed as a regular non-privileged user
Install ifconfig command with yum
# yum install net-tools
command is now available.