您的位置 首页 linux 运维

linux配置文件/etc/profile PATH 更改错误,导致命令失效

linux配置文件/etc/profile更改错误,导致命令失效

 

解决办法

进/etc/profile配置文件里面把错误的地方修改一下;

/bin/vi /etc/profile

保存完成后,在执行以下语句:

export PATH=$PATH:/usr/bin:/usr/sbin:/bin:/sbin
source /etc/profile

 

usr/libexec/grepconf.sh: line 5: grep: command not found

现在终端执行:

 

 

Linux修改/etc/profile文件导致所有命令失效_linux 错误执行了 source profile 导致命令失效-CSDN博客

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章