Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Ubuntu, and I'm having trouble with the terminal application. Every time I open it this message appears:

"bash: /home/xxxxx/.bashrc: line 1: syntax error near unexpected token `('
bash: /home/xxxxx/.bashrc: line 1: `source QSTK/ ~/.bashrc: executed by bash(1) for non-login shells.'"

How can I remove or delete it?

share|improve this question
up vote 1 down vote accepted

Open your favorite editor, for example gedit (Super key gedit Enter). Then open /home/xxxxx/.bashrc using the File menu. Delete that first line. Save the file. Now, start up a new terminal window and see if the problem is gone.

share|improve this answer
Thanx a ton Gary. – Raju Nov 29 '12 at 7:30

Your Answer


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.