<

How do I access external drive via Terminal in Mac OS X?

How do I access external drive via Terminal in Mac OS X?

Postby leighton17 » Wed Apr 06, 2011 8:38 pm

I open up terminal and I know how to change directories on the main drive, but I would like to access the external drive and its directories. When I open Terminal I have a prompt like this:
John-Does-iMac:~mac$

When I do pwd I get "Users/mac"

I have an external drive in Devices called "My Book"

How do I get to its directories via the terminal ?

Thanks so much
User avatar
leighton17
 
Posts: 107
Joined: Fri Sep 04, 2009 6:50 pm

How do I access external drive via Terminal in Mac OS X?

Postby beauvis » Wed Apr 06, 2011 8:42 pm

I open up terminal and I know how to change directories on the main drive, but I would like to access the external drive and its directories. When I open Terminal I have a prompt like this:
John-Does-iMac:~mac$

When I do pwd I get "Users/mac"

I have an external drive in Devices called "My Book"

How do I get to its directories via the terminal ?

Thanks so much
cd "/Volumes/My Book"

Note that you have to use the quotes because Unix uses the space as a delimiter. The GUI programs put the quotes in for you. That's why it's best to name directories My_Books, then you don't need to mess with the quotes.

To see if the drive is mounted:

df -h
User avatar
beauvis
 
Posts: 81
Joined: Fri Sep 18, 2009 10:24 am


Return to iMac

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests