Creating a Folder in Terminal

Discussion in 'Mac Programming' started by macbook129, Mar 7, 2008.

  1. macrumors newbie

    Joined:
    Jul 21, 2006
    #1
    Hi, i'm trying to create a hidden folder on my external hard drive for protecting some data but having trouble even getting to the drive location

    so far all i got is;

    ~ cd volumes
    and if i "ls" i can see the "Lacie Mini" external hard drive i want, but if i type

    ~ cd volumes Lacie Mini , its unrecognized.

    Help Appreciated, Thanks.

    (mkdir .PrivateFolder)
     
  2. TEG
    macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #2
    To open files with a space, enclose the name in quotation marks, cd volumes/"Lacie Mini".

    TEG
     
  3. Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #3
    You can drag and drop the external into the terminal window and it will create the path automatically for you.

    You want

    cd /Volumes/Lacie\ Mini
     
  4. thread starter macrumors newbie

    Joined:
    Jul 21, 2006

Share This Page