Dot Folders in Terminal, whats the directory path setup for external drives?

Discussion in 'macOS' started by sparkie7, Nov 6, 2008.

  1. sparkie7 macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #1
    Ok, so I know that: mkdir .testhiddenfolder will create an invisible folder on my home directory. but how do i do this if i have an external drive called "G-Drive M2" .... is it mkdir G-Drive\\M2/.testhiddenfolder, or mkdir volumes/G-Drive\\M2/.testhiddenfolder

    sorry if this is a way basic question. I'm totally new to unix and Termianl

    any help would be greatly appreciated :D
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
  3. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #3
    thanks Cromulent.

    and whats the correct path for revealing the hidden folder.. ~/Volumes/G-Drive\ M2/.testhiddenfolder ??

    It doesnt quite work!
     
  4. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
  5. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #5
    i tried it under Go to folder.. it says "The folder cannot be found" :(
     
  6. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #6
    and when i try it in Terminal it comes back with..

    -bash: /Volumes/G-Drive M2/.testhiddenfolder: is a directory
     
  7. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #7
    Yes that is why you use the cd (change directory) command.

    cd /Volumes/G-Drive\ M2/.testhiddenfolder

    then you can put as many files as you like in it. You can open the folder in finder by doing:

    open /Volumes/G-Drive\ M2/.testhiddenfolder

    you should be using Terminal for all of this.
     
  8. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #8
    great. thanks :D

    how do i make the folder accessible via the "Go to folder" under "Go" ?
     
  9. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #9
    Type the path in as I have just given you without the command.
     
  10. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #10
    ok, i tried typing: /Volumes/G-Drive\ M2/.testhiddenfolder into Go to folder. still no luck.
     
  11. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #11

    so its not possible to open hidden folder using "go to"?.. does it all have to be done via Teminal

    i know that you can at least have access to a root directory folder via Go to menu by using the syntax: ~/.testhiddenfolder

    i just cant seem to do this when the hidden folder is on an external drive. I can via Terminal, but not thru Go to

    any ideas? :rolleyes:
     
  12. martychang macrumors regular

    Joined:
    Sep 3, 2007
    #12
    My experience is Finder will cry tears of blood if you try to make it access one of those evil UNIX hidden directories. So you don't make it do so: create a non-hidden subfolder in your hidden folder on the drive, and go-to that instead. It only objects to opening the .lolhiddenfolder, it doesn't care if it's in the path "~/.lolhiddenfolder/whereikeepactualfiles"
     
  13. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #13
    yes, but in order to access the non-hidden folder (inside you hidden folder), you have to make your hidden folder accessible first. how do you do this without going via the Terminal app?
     
  14. martychang macrumors regular

    Joined:
    Sep 3, 2007
    #14
    Go to? You can type the full path into Go to folder in the Finder. Finder hates opening a .folder ITSELF it doesnt' care if the non-.folder is inside a .folder.
     
  15. sparkie7 thread starter macrumors 68000

    sparkie7

    Joined:
    Oct 17, 2008
    #15
    err... can you gave an example of this?

    ie. the exact syntax that you'd type in Go to..
     

Share This Page