accessing a file from terminal

Discussion in 'macOS' started by rgreen, Jun 3, 2008.

  1. rgreen macrumors newbie

    Joined:
    Mar 3, 2006
    #1
    How do I access a file from terminal that contains a space in the name?
     
  2. kuwisdelu macrumors 65816

    Joined:
    Jan 13, 2008
    #2
    Put quotes around the pathname.

    E.g. if you have a folder called "My Files" just do:

    Code:
    cd "My Files"
     
  3. bootedbear macrumors 6502

    bootedbear

    Joined:
    Sep 13, 2004
    Location:
    Austin, TX
    #3
    or escape the space with a backslash:

    cd My\ Files
     

Share This Page