Drive paths in unix ~/

Discussion in 'Mac Apps and Mac App Store' started by GigaWire, Mar 1, 2004.

  1. GigaWire macrumors 6502

    Joined:
    Dec 25, 2001
    #1
    On my Mac I have 5 drives. Names are DRIVE_1 to DRIVE_5. DRIVE 1 & 2 are the same drive, just 2 partitions of that hard drive. DRIVE_3 is a second hard drive all on its own. DRIVE_4 is a firewire hard drive, and DRIVE_5 is an internal Superdrive.

    So, how do I denote these volumes in terminal? Let's say I want to open FOLDER on DRIVE_4, what would I type in terminal to tell it to switch from throot drive (DRIVE_1) to DRIVE_4? But really, just tell me how to get to the root of another drive, and I'll be fine. You can even just fill out this form:

    thanks-

    I want to access DRIVE_3, when I open terminal I type?

    Last login: Mon Mar 1 01:25:10 on console
    Welcome to Darwin!
    Bobs-Computer:~ admin$
     
  2. abhishekit macrumors 65816

    abhishekit

    Joined:
    Nov 6, 2003
    Location:
    akron , ohio
    #2
    1. cd / *this will take you to the root*
    2. cd Volumes *this is where all the drives are,eg cd/dvd, hard drives etc*
    3. ls *it will show all drives*
    4. cd drive_4/folder4/any possible subfolder

    hope it helps
     
  3. idkew macrumors 68020

    idkew

    Joined:
    Sep 26, 2001
    Location:
    where the concrete to dirt ratio is better
    #3
    simplistic way:

    to see my mounted volumes, i cd /
    then i ls to see what is in the directory.
    then i cd to Volumes
    and so on.....


    you beat me to it abhishekit!
     
  4. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #4
    the thing is most people dont know how to get to the drive or whats on it.
    Easiest way is to do cd /Volumes/(volume name, if it has spaces "type it like this with quotes" or do\ it\ this\ way\ putting\ a\ backslash\ before\ the\space)/(folder).
     

Share This Page