Home > System Tutorial > LINUX > 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
Release: 2024-01-06 23:30:06
forward
1139 people have browsed it

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!

source:jb51.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template