Jump to content

Linux Accessing directory that is a space

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Jame

Jame

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
Somehow I have a directory that is just a space. IE:

/home/ /dir/here/

I can't see it when I do 'ls' or 'ls -la'. I know it is there and can see the contents using an FTP client such as CuteFTP or FireFTP.

How do I access it from terminal? How do I delete it from terminal? How do I keep directories of a space from being created?

#2
Tor

Tor

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 486 posts
That is odd, how do you even create a directory that is a space? Have you tried cd /%20/ being %20 = a space in browsers? or just cd / /?

#3
Jame

Jame

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
I figured it out, by accident.


cd /home/\ /


I guess you have to escape it.