Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Woodcrest64

macrumors 65816
Original poster
I'm trying to change the directory path in a program.

In windows I use to type c:/directoryname/directoryname/

In OSX the drives have names so do I type "drive_name/directoryname/directoryname/ ??
 
OSX is like any other Unix. All drives are mounted into a single, unified, tree with a root at /. The boot drive is mounted at /. Any other drive will be, unless you have done something odd, mounted in /Volumes/
 
In Terminal, if you
Code:
ls /Volumes
you'll see all of your drives. You can then cd to one of them (or just cd directly - no need to list the volumes first). For example:
Code:
cd /Volumes/My\ Other\ Drive
Spaces are replaced by '\ '. Or you can put the whole thing in quotes:
Code:
cd /Volumes/"My Other Drive"
If the drive name has no spaces, then you'd just use the name:
Code:
cd /Volumes/MyOtherDrive

via "mac os x terminal change to another volume"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.