Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

 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"

share|improve this question

marked as duplicate by Eliah Kagan, Radu Rădeanu Sep 18 at 8:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 4 down vote accepted

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 have you altered/added.

share|improve this answer
    
bash: cp: No such file or directory error!!! –  revan Jun 29 '13 at 9:40
1  
If your PATH variable is messed up, you can try /bin/cp /etc/skel/.bashrc ~ –  ortang Jun 29 '13 at 9:42
    
Its worked, without error in terminal!!! Thank you, saved me. –  revan Jun 29 '13 at 9:45
    
You are welcome –  ortang Jun 29 '13 at 9:46
    
I am new to this Ubuntu env, can you suggest me any tutorials to follow –  revan Jun 29 '13 at 9:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.