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 have a folder in my system with no name in it. It is empty. But that folder has files inside it.

Just out of curiosity, I tried to create another folder and try to rename it by not giving any name. But I could not do it.

Any idea, how can it be achieved?

On the same topic, how to access that folder in the shell?

share|improve this question
If you do ls -l in the parent directory, what is the output? – Braiam Aug 9 '13 at 12:53
I am sorry, in the height of excitement, I renamed it to "/". I was trying to use the escape sequence "\ " ( Read it as \<space> ) – Aug 9 '13 at 12:55
I could create a folder called " " (space) just typing mkdir " ". It had name, just that it was named " " – Braiam Aug 9 '13 at 12:56
@Braiam, Vow, Thanks, Any idea, how do we access in the terminal? – Aug 9 '13 at 12:57
cd \ / works just fine – Braiam Aug 9 '13 at 12:58

Accourding with these Rules For Naming File And Directory Names, no, it can't have no name, but can be named with one or more space/blank characters:

enter image description here

From the above picture you can deduce that you can access a directory having only a space in the name with:

cd ' '
share|improve this answer
For example mkdir '' returns mkdir: cannot create directory ‘’: No such file or directory or mkdir -p some//path just create some/path. – Braiam Aug 9 '13 at 13:00
@Braiam Yes, but for example mkdir ' ' is creating a ' ' directory :/ – Radu Rădeanu Aug 9 '13 at 13:30
Sorry, I was under the perception you have read my other comment – Braiam Aug 9 '13 at 13:34

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.