Home  >  Article  >  Operation and Maintenance  >  What to do if ipconfig cannot be used in Linux

What to do if ipconfig cannot be used in Linux

青灯夜游
青灯夜游Original
2022-05-13 17:02:348034browse

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.

What to do if ipconfig cannot be used in Linux

#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.

What to do if ipconfig cannot be used in Linux

ifconfig command cannot be used in Linux Solution

1, Check Check if there is an ifconfig command in the /sbin path

What to do if ipconfig cannot be used in Linux

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

What to do if ipconfig cannot be used in Linux

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.

What to do if ipconfig cannot be used in Linux

Execution code: yum install net-tools.x86_64

What to do if ipconfig cannot be used in Linux

##Execution code:

ifconfig, check whether the installation is successful.

What to do if ipconfig cannot be used in Linux

At this point the ifconfig command has been installed and you can see your network card information.

Related recommendations: "

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn