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.
 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 opend termianl. The following commands i applied in terminal,

sudo gedit $HOME/.bashrc

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

 source ~/.bashrc

    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/.bashrc: 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 agin that file shows the error file or directory not found.
what do i do to set all correct ??, please any help?

This forum i tried
[forum]: http://forum.xda-developers.com/showthread.php?t=919425 "--point 2"
share|improve this question

1 Answer 1

up vote 2 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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