我每次登錄Linux後都顯示: -bash:/ usr/local/bin:/ bin:/ usr/bin:/ usr/local/sbin:/ usr/sbin:/ sbin =/usr/local/bin:/ bin:/ usr/bin:/ usr/local/sbin:/ usr/sbin:/ sbin:/ home/xx/bin:或目錄linux bash錯誤:-bash:沒有這樣的文件或目錄
我注意到裏面有一個'=',但我不知道爲什麼。 我的.bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
$PATH=$PATH:$HOME/bin
export PATH
export JAVA_HOME=/opt/jdk1.8.0_73
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
我想設置的JAVA環境,和它的作品,但在我編輯配置文件,它顯示的是bash錯誤。 我該如何解決它?
'PATH = whatever',不'$ PATH = foobar' – Mat