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