-bash: .bash_profile: command not found

简介:

今天有一同事安装了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

clip_image001

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

相关文章
|
6月前
|
关系型数据库 MySQL Shell
【Linux命令】-bash: mysql: command not found
【Linux命令】-bash: mysql: command not found
56 0
|
2月前
|
Linux Shell
mac/linux提示bash: telnet: command not found
mac/linux提示bash: telnet: command not found
|
4月前
|
Shell 应用服务中间件 开发工具
bash: vi: command not found
bash: vi: command not found
|
9月前
|
Shell
bash: accelerate: command not found
bash: accelerate: command not found
1592 3
|
10月前
|
Ubuntu 关系型数据库 MySQL
提示-bash: command not found的解决方法集锦
提示-bash: command not found的解决方法集锦
|
10月前
|
JavaScript Shell Linux
-bash: grunt: command not found去环境变量添加nodejs的路径
-bash: grunt: command not found去环境变量添加nodejs的路径
78 0
|
11月前
|
Shell Linux
Linux pip命令报错 -bash: pip: command not found
Linux pip命令报错 -bash: pip: command not found
255 0
|
4月前
|
Linux Shell Windows
4:Bash shell命令-步入Linux的现代方法
4:Bash shell命令-步入Linux的现代方法
53 0
|
8月前
|
Ubuntu 安全 Linux
不用安装虚拟机,直接在Windows上面运行Linux Bash Shell,嗯!真香!!!
不用安装虚拟机,直接在Windows上面运行Linux Bash Shell,嗯!真香!!!
152 0
|
21小时前
|
Java Shell Linux
【linux进程控制(三)】进程程序替换--如何自己实现一个bash解释器?
【linux进程控制(三)】进程程序替换--如何自己实现一个bash解释器?