执行 source /etc/profile 报错

执行 source /etc/profile 报:-bash: expor: command not found -bash: rt: command not found

在这里插入图片描述
出现了这种问题主要是配置里少写了一个t 【od 解决 一般问题都在export path这】
在这里插入图片描述

使用vi /etc/profile,查看export是否完整,因为复制的时候可能只剩下expor或者rt,这时需要将它们补充完整,保存退出,再重新执行source /etc/profile就可以了

vi /etc/profile
source /etc/profile

在这里插入图片描述


版权声明:本文为weixin_45684171原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。