Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.