Linux中ipconfig command not found的解决方法

【Linux版本:slackware-13.37-install-d1】

1.root账户下,修改/etc/profile

# vim /etc/profile

2.按a进入insert模式,在末尾添加以下内容

PATH=$PATH:/sbin 
export PATH=$PATH:/sbin 

3.保存退出vim之后,输入以下命令,更新配置信息

source /etc/profile

4.再次输入ipconfig即可

posted @ 2021-02-21 23:32  Dapeus  阅读(1982)  评论(0)    收藏  举报