Trying to install java jre
, I messed up the file bash.bashrc
on Ubuntu 14.04, by adding these two lines at the end :
export PATH= $PATH:usr/java/bin/ ;
export JAVA_HOME= $JAVA_HOME:usr/java/bin/java/
Now I cannot do any command on terminal. When I open terminal it give me these errors:
bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:usr/java/bin/': not a valid identifier
bash: export: `:usr/java/bin/java/': not a valid identifier
bash: lesspipe: No such file or directory
bash: dircolors: No such file or directory
bash: ls: No such file or directory
Could anyone help?
~/.bashrc
while this one is about/etc/bash.bashrc
.