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.

awhile ago i was installing something and doing some stuff with terminal, and i think i messed it up. on the terminal app it says "Terminal - cat - 80x24" then inside terminal it says:

Last login: Wed Jan 1 14:05:47 on ttys000

-bash: [[-s: command not found

is there a way to reinstate my terminal to original settings? thank you!

share|improve this question

1 Answer 1

The error message says that your login shell (-bash) had a problem parsing its init file (have you edited ~/.bashrc or equivalent recently?), and failed where you had "[[-s" (you probably wanted "[[ -s", with a space between "[[" and "-s").

You can find it via

egrep '\[\[-s' .bashrc .bash_profile .bash_login /etc/profile/etc/bash.bashrc /etc/environment

Not all of those files will exist, but, if they do, check them.

share|improve this answer

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.