RedHat不能使用ifconfig命令

2022-11-21,,

安装RedHat后,使用ifconfig命令,结果报错command not found,解决方法如下:

1.cat ~/.bash_profile     查看path

2.vi /etc/profile    编辑profile文件

3.在profile文件中添加以下内容:

PATH=$PATH:sbin

export PATH=$PATH:/sbin

若profile不能修改,权限是只读,则用root用户先修改权限,再编辑

RedHat不能使用ifconfig命令的相关教程结束。

《RedHat不能使用ifconfig命令.doc》

下载本文的Word格式文档,以方便收藏与打印。