码迷,mamicode.com
首页 > 其他好文 > 详细

-bash: .bash_profile: command not found

时间:2015-01-22 00:10:17      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:

今天有一同事安装了ORACLE后,在切换账号时遇到错误提示“-bash: .bash_profile: command not found”。如下所示

[root@GLETestLinux ~]# su - oracle
-bash: .bash_profile: command not found
[oracle@GLETestLinux ~]$ more .bash_profile
.bash_profile
 
# Get the aliases and functions
 
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

技术分享

我仔细检查了好几遍,最后才发现原因:该同事直接从安装文档拷贝内容粘贴到配置文件.bash_profile时,误带入了.bash_profile到配置文件.bash_profile里面(截图箭头所示),结果就出现了上面错误,粗心害人不浅啊!

-bash: .bash_profile: command not found

标签:

原文地址:http://www.cnblogs.com/kerrycode/p/4240370.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!