当前位置:首页 > linux > 正文内容

Linux系统 ifconfig使用不了 解决方法

six4年前 (2022-09-14)linux2020

1、首先需要先确认是否未配置环境变量,因为ifconfig在“/sbin/”目录,需要使用管理员用户进行操作,使用 echo %PATH 查看用户环境变量
ls /sbin | grep ifconfig
如果找不到ifconfig,表示没有安装ifconfig

使用yum安装 查找相关包
yum search ifconfig 

发现ifconfig是在net-tools包下,对其进行安装
yum install net-tools.x86_64

安装完成后,输入ifconfig测试

相关文章

CentOS常用基础命令大全

1.关机 (系统的关机、重启以及登出 ) 的命令 shutdown -h now 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdo...

centos7修改系统时间和修改硬件时间

CentOS7的时间分为系统时间和硬件时间。二者都修改,重启系统才会永久生效。 修改步骤如下 1.查看当前系统时间 date 2.修改当前系统时间 date -s "2022-10-14 19:...

shell脚本编程:将文件中指定行的内容进行替换

(1)在文件中通过关键字查找得到其所在的行号        &nbs...

SFTP基本功之get、put命令操作

登录远程服务器 open xxx.xxx.xxx.xxx // ip get 远程文件名 本地文件名 put 本地文件名 远程文件名 服务器下载至本地 get -r xxxx.xx //...

xshell 之win控制台启动参数

-url [protocol://][user[:password]@]host[:port] xshell 启动参数 xshell -url  ftp://root:123456@192...