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 have downloaded the 64bit executable Sublime Text file and have extracted it. It then created a subdirectory called Sublime Text 2. I can see because I've done an ls.

The problem is when I do cd Sublime Text 2, I get:

-bash: cd: Sublime: No such file or directory.

Can you please tell me what I'm doing wrong? I'm a newbie at Linux!

share|improve this question

Linux isn't very friendly with spaces in file names. In the old days, operating systems couldn't support spaces in file names and spaces in file names can be problematic when programming.

In the command line, a space in a file name is equal to a backslash then a space.

For example, to go to Sublime directory, you would type:

cd Sublime\ Text\ 2/ 
share|improve this answer
1  
You could also surround the command with double quotes. – Seth Jun 29 '13 at 17:00

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.