Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have files saved under Macintosh HD/Library/... that I need to manipulate using bash. How can I access those files in the shell?

share|improve this question

All mounted volumes on OS X are mounted to the "/Volumes" directory. Thus, you would enter this in the terminal:

cd /Volumes/Macintosh\ HD/Library

"\ " indicates a space.

share|improve this answer
1  
Note that if "Macintosh HD" is your system disk then cd /Library should suffice because the root of the system disk is mounted at /. – PleaseStand Jun 10 '12 at 3:49

Just adding to upper ans. You can use single quote or double quote. This is sometimes easier to use as you dont have to escape individual space. Ex:

cd "/Volumes/Macintosh HD/Library"
cd '/Volumes/Macintosh HD/Library'

NOTE: If you are on the mac. Pressing TAB key will auto complete your dir names and it will auto escape spaces for you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .