Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

When I type a command e.g.

cd /etc/   

I get the following

cd /etc$ 

if I press the backslash key again then I get the correct entry

cd /etc/  

I am using gnome but I get the same problem with KDE.

Does anyone know what may be causing this problem?

share|improve this question

closed as too localized by Michael Mrozek Feb 13 '12 at 15:12

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Underscore or dollar sign? Backslash or backspace? Please describe exactly the sequence of keys that you type. – Gilles Jun 27 '11 at 20:24
Is the $ a real character? What happens if you don't hit the backspace and hit Enter? Does it send cd /etc/$ to the prompt, or does it ignore the $? – Chance Jun 27 '11 at 20:35
Note: Please use codetags, to distinguish code from description in prose. – user unknown Jun 27 '11 at 20:38
You write if I press the backslash key again, but why do you hit it, and in which way again? Do you confuse slash and backslash here? What do you mean? And: to cd into /etc you don't need a trailing slash. – user unknown Jun 27 '11 at 20:39
And in the headline, you're talking about an underscore problem. What do you mean by that? – user unknown Jun 27 '11 at 20:44

Sounds like your shell is severely misinformed about the terminal type you are using. This is normally communicated to applications through the TERM environment variable, I believe. I think the usual situation is to have an export TERM=xterm or similar in your .bashrc or other file that is automatically executed on login or when a shell is spawned.

share|improve this answer

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