files with spaces in the name


Results 1 to 8 of 8

Thread: files with spaces in the name

  1. #1
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    95

    Another strange thing

    everything is finally working great for me. I'm getting pretty good at the command line. However, I do have a win drive mounted and can read it, if the directory doesnt have a space in the naming. for example

    I cant get to program files because it has a space in it. I am logged in as root. Running MDK 9.1 first question, would it be that I need to share this folder on the windows side in the first place? or second, do I just simply have the syntax?
    I am simply doing cd program files (case sensitive)

    when I am browsing through my dir structure with konquerer I can access them just fine. Is there something I need to change, if so, is it on my *nix side or Win?

  2. #2
    Join Date
    Jun 2001
    Location
    Maynard, MA
    Posts
    37
    Can you replace the spaces with %20 and access the share? I'm merely guessing.
    /Eric

    Slackware 9.1

  3. #3
    Join Date
    Sep 2002
    Location
    Wales, UK
    Posts
    5
    put a \ infront of the space like this
    Code:
    cd Program\ Files
    that should let you get in to the directory

  4. #4
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    95

    thanks..

    thanks guys for the quick responses. I had forgotten about the \ required for that, got me right in!

  5. #5
    Join Date
    Feb 2002
    Location
    NY
    Posts
    221
    you can just put in it quotes also "Program Files"

  6. #6
    Join Date
    Oct 2000
    Location
    Calgary, Alberta, Canada
    Posts
    8,116
    < edited the subject to one that relates to the question. see my sig for posting guidelines >

  7. #7
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,627
    Originally posted by chrisP
    you can just put in it quotes also "Program Files"
    This is what I always do, if tab complete doesn't take it first

  8. #8
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Yep, tab completion will put the escaping backslash in there for you. If you were in your Windows C drive directory, and typed cd Pro and hit tab, the shell will complete the rest (by adding "gram\ Files/" onto your command line) for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •