Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 running 11.04.

Every time i tried to a command such as

mv flieA $HOME/<somedir>/

Terminal automatically put "\" in front of $HOME when I hit the 'Tab' key for autocomplete

mv flieA \$HOME/<somedir>/

it's incredibly annoying, how can i fix this.

share|improve this question
up vote 2 down vote accepted

Use ~ instead of $HOME. It is shorter to write, and it will not mess up the autocompletion.

egil@morgenstern [~] $ ls \$HOME/
egil@morgenstern [~] $ ls ~/
share|improve this answer
Right that's one solution, however I use a lot of customized env. variables, it does that every time i use "$", is there is a more permanent solution? I don't recall the terminal did that in previous releases. – adjfac May 26 '11 at 18:24
The problem lies with Bash. See – Egil May 27 '11 at 10:03

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.