這個問題一般就是.bash_profile 文件內容錯誤,里面內容沒加注釋之內的,vi .bash_profile打開文件檢查一下,然后:wq!保存退出 我的錯誤就是紅圈處沒有注釋造成的 ...
今天有一同事安裝了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 ...
2015-01-21 23:01 0 2439 推薦指數:
這個問題一般就是.bash_profile 文件內容錯誤,里面內容沒加注釋之內的,vi .bash_profile打開文件檢查一下,然后:wq!保存退出 我的錯誤就是紅圈處沒有注釋造成的 ...
由於在.bash_profile配置路徑導致終端部分命令失效 使用 open .bash_profile vim ~/.bash_profile 都無效 解決方法: 打開訪達,前往文件夾~/.bash_profile 雙擊.bash_profile文件,查看配置路徑,由於配置 ...
說說配置環境變量的方法: vim ~/.bash_profile 進入配置文件 添加路徑例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,執行生效的指令 由於我每次關閉 ...
說說配置環境變量的方法: vim ~/.bash_profile 進入配置文件 添加路徑例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,執行生效的指令 由於我每次關閉 ...
1、打開Terminal(終端) 2、輸入:vi ~/.bash_profile 3、設置PATH:export PATH=/mongodb/bin:$PATH 4、輸入::wq //保存並退出vi 5、修改立即生效:source ~/.bash_profile ...
1.Debian默認的shell是Bash, 1.1 命令行 和 ssh 登錄 ,首先讀入 /etc/profile,這是對所有用戶都有效的配置;然后依次尋找下面三個文件,這是針對當前用戶的配置。 ~/.bash_profile ~/.bash ...
全局的是在/etc目錄下(/etc/profile)用戶個人的是在用戶的家目錄下(~/.profile) 查看: 全局:cat /etc/profile 個人:cat ~/.bash_profile 編輯: 全局:vi /etc/profile ...
localhost:test jerry$ open .bash_profile The file /Users/je/Desktop/test/.bash_profile does not exist. localhost:test je$ open .bash_profile ...