Linux执行source /etc/profile报错“:command not found”

修改完 /etc/profile中的内容后,执行“立即生效”命令 “source /etc/profile”报错:

:command not found

:command not found

:command not found

解决方法:

执行如下命令(两种方式):

1.  locate source /etc/profile  (亲测可用)

2.  usr/bin/source /etc/profile

参考:https://blog.csdn.net/zhangminemail/article/details/63683391

猜你喜欢

转载自www.cnblogs.com/zhcBlog/p/9845662.html