-bash: .bash_profile: command not found

作者:佚名 上传时间:2019-04-27 版权申诉

今天有一同事安装了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: .bash_profile: command not found

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

免责申明:文章和图片全部来源于公开网络,如有侵权,请通知删除 server@dude6.com

用户评论
相关推荐
-bash: .bash_profile: command not found
今天有一同事安装了ORACLE后,在切换账号时遇到错误提示“-bash: .bash_profile: command not found”。如下所示 [r
Linux bash ls command not found
今天登录阿里云后不知道怎么回事,一直报:-bash: ls: command not found 原因: 环境变量PATH被修改了 解决办法: 执行命令: export PATH=/bin:/usr/
PDF
57KB
2021-01-16 08:49
解决bash mysql command not found的方法
解决bash: mysql: command not found 的方法,需要的朋友可以参考一下
PDF
32KB
2020-10-28 08:20
telnet不能用提示bash telnet command not found
NULL博文链接:https://javatea.iteye.com/blog/2360941
rar
0B
2019-07-23 18:58
bash scp command not found的解决方法
今天在一系统上运行bash scp提示command not found,经过如下方法解决了,需要的朋友可以参考下
PDF
29KB
2020-10-28 08:20
bash mysql command not found的问题与解决
前几天重装了mysql,装好之后navicat一直正常可以对mysql进行操作,但是今天要使用命令行进行操作时遇到-bash: mysql: command not found的问题。 总结一下解决办
PDF
65KB
2021-01-16 07:53
shell脚本执行jps时bash jps command not found
我构建了hadoop集群。我们一定会写一个shell脚本去每一个节点上去jps,查看每个节点的进程情况。 原先以为shell很简单: #!/bin/bash #查看每个节点运行情况 for((host
PDF
37KB
2021-01-31 01:34
bash: ifconfig: command not found
法一:[root@localhost sbin]$ /sbin/ ifconfig 就可以出现使用了 方法二:[root@localh
bash: groupadd: command not found
今天在安装MYSQL的时候,新建数据库用户。 #groupadd mysql 结果提示:bash: groupadd: command not found
bash_profile master.zip
macOS bash_profile 描述文件, 可下载解压后直接替换(including files:.bash_profile, .bash_profile_colors, .bash_profi
ZIP
373KB
2021-04-19 03:17