source /etc/profile 后报错各种command not found

问题描述:

添加了环境变量,所以需要配置 /etc/profile, 并执行 source /etc/profile。 但是执行后一直报错:

root@server8 zsc]# source /etc/profile
bash: sed: command not found...

source /etc/profile 后报错各种command not found_第1张图片

问题原因:

profile 文件中存在 PARH 参数错误情况:

source /etc/profile 后报错各种command not found_第2张图片

 正确:

source /etc/profile 后报错各种command not found_第3张图片

大意了。记录一下,下次一定注意!!!!! 

 

你可能感兴趣的:(linux,linux)