Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if ipconfig cannot be used in Linux
Solution: 1. Check if there is ifconfig under "/sbin". If not, the system is not installed; 2. Execute "yum search ifconfig" to search for the ifconfig package; 3. Execute "yum install net-tools. x86_64" command to install.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
When you just installed the Linux system, the toolkit was not installed. When you enter the terminal and run the ifconfig command, an error will occur, indicating that the command cannot be used.
1, Check Check if there is an ifconfig command in the /sbin path
The result shows that there is no ifconfig command in the root user/sbin path, so the ifconfig command is not installed in Linux.
2. Install ifconfig command
Execution code: yum search ifconfig
Through the yum search command, we found that the ifconfig command is in the net-tools.x86_64 package. Next, we only need to install this package.
Execution code: yum install net-tools.x86_64
ifconfig, check whether the installation is successful.
Linux Video Tutorial"
The above is the detailed content of What to do if ipconfig cannot be used in Linux. For more information, please follow other related articles on the PHP Chinese website!