Home  >  Article  >  System Tutorial  >  How to solve the missing commands after CentOS 7 is successfully installed?

How to solve the missing commands after CentOS 7 is successfully installed?

PHPz
PHPzforward
2024-01-06 23:30:061024browse

I installed CentOS 7 today, but when I want to check the IP address, I get a command not found prompt

CentOS 7安装成功后缺少命令如何解决?

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete