Linux关于bash:ifconfig command not found 解决方法
2016-06-28 17:46
751 查看
ifconfig command not found 表示找不到这个方法和命令的意思。
出现这种问题的主要可能有两个:
1.你的Linux不支持这个命令,一般将你的shell到Bourne Shell
首先查看用户的默认Shell
echo $SHELL
显示
非/bin/bash 的话 就有可能是shell出了问题,将切换到bash
(1)grep root /etc/passwd
chsh
/bin/bash
查询修改
grop root /etc/pawssd
2.将ifconfig的执行命令目录添加到PATH下
执行命令:
export
PATH="$PATH:/sbin"
出现这种问题的主要可能有两个:
1.你的Linux不支持这个命令,一般将你的shell到Bourne Shell
首先查看用户的默认Shell
echo $SHELL
显示
非/bin/bash 的话 就有可能是shell出了问题,将切换到bash
(1)grep root /etc/passwd
chsh
/bin/bash
查询修改
grop root /etc/pawssd
2.将ifconfig的执行命令目录添加到PATH下
执行命令:
export
PATH="$PATH:/sbin"
相关文章推荐
- 统计网卡流量的两段shell脚本(使用ifconfig)
- Ubuntu 12.04 ifconfig not commad
- linux 的ifconfig命令
- linux网络配置命令之ifconfig、ip和route
- eth0,eth1,eth2,lo是什么
- ifconfig详解
- ifconfig用法查看和配置网络设备。
- ifconfig 命令用来查看和配置网络设备
- Redhat7没有安装ifconfig命令的解决方法
- ifconfig命令
- ifconfig详解
- linux双网卡绑定
- Centos7 查看IP
- TCP/IP 协议简介
- linux网络命令--1--ifconfig
- centos7.0的几个新特性
- CentOS迷你版安装后--ifconfig不能使用的解决
- 在linux和unix系统中,执行ifconfig时出现 commond not found
- 设置win7的MTU
- CentOS 7 最小化安装后 没有安装ifconfig命令的解决方法