最新消息:XAMPP默认安装之后是很不安全的,我们只需要点击左方菜单的 "安全"选项,按照向导操作即可完成安全设置。

Linux关于bash:ifconfig command not found 解决方法

XAMPP下载 admin 893浏览 0评论

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”

转载请注明:XAMPP中文组官网 » Linux关于bash:ifconfig command not found 解决方法

您必须 登录 才能发表评论!