-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里面(截圖箭頭所示),結果就出現了上面錯誤,粗心害人不淺啊!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM