执行 source /etc/profile命令时,报错:-bash: #: 未找到命令
问题描述:CentOS 执行 source /etc/profile命令时,报错:-bash: #: 未找到命令[root@localhost ~]# source /etc/profilebash: unse: 未找到命令...问题原因:/etc/profile文件内容错误,如下修改/etc/profile文件内容将unse tMAILCHECK修改为unset MAILCHECK后保存,运行命
·
问题描述:
CentOS 执行 source /etc/profile命令时,报错:-bash: #: 未找到命令
[root@localhost ~]# source /etc/profile
bash: unse: 未找到命令...
问题原因:/etc/profile文件内容错误,如下
修改/etc/profile文件内容
将unse tMAILCHECK修改为unset MAILCHECK后保存,运行命令可正常执行;
此问题多数情况是/etc/profile文件内容错误导致,耐心检查找到错误位置即可解决;
更多推荐
已为社区贡献2条内容
所有评论(0)