I installed CentOS 7 today, but when I want to check the IP address, I get a command not found prompt
This is because there is no ifconfig command in the /sbin/ directory, so of course it will prompt command not found. The solution is as follows:
Use yum to install:
1. First use yum search ifconfig to view the ifconfig that can be found in the yum library
At this time we see that we have found a package that can solve the problem through the yum command, so we only need to install this package yum -y install net-tools.x86_64 (-y means yes during the execution process, no need ask)
Type Enter until completed, then the ifconfig command can be used normally
Other commands are similar and can be installed through yum!
The above is the detailed content of How to solve the missing commands after CentOS 7 is successfully installed?. For more information, please follow other related articles on the PHP Chinese website!