2
 bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
 bash: /home/entw/.bashrc: line 111: unexpected EOF while looking for matching `"'
 bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
 entw@entw-desktop:~$ 

This is the error I frequently getting in terminal, shows when terminal opened.

The following commands I applied in terminal,

sudo gedit $HOME/.bashrc

and added some path variable like android SDK, and run the following command

source ~/.bashrc

then I got the error in terminal

bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local  /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
bash: /home/entw/.basrc: line 111: unexpected EOF while looking for matching `"'
bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
entw@entw-desktop:~$ 

but if I try to open again that file shows the error file or directory not found. what do I do to set all correct?

This forum I tried: http://forum.xda-developers.com/showthread.php?t=919425 "--point 2"

αғsнιη
  • 35,660
revan
  • 23
  • 1
  • 1
  • 5

1 Answers1

9

How to reset .bashrc file which edited before to set PATH ANDROID sdk

The original .bashrc is located in /etc/skel/. So just run the following command:

cp /etc/skel/.bashrc ~

That way you can restore your .bashrc to the way it was when you created the account for the user.

Regarding the problem you are facing: it would be helpful if you post the content of your .bashrc, or at least the code you have altered/added.

ortang
  • 2,143
  • 14
  • 13