Disk navigation and terminal commands...

Pollinctor

Registered
How do you guys view a directory on another disk. For instance I am running MacOSX 10.1.1 on my main SCSI drive, and on my second, I am thinking about adding the latest build of darwin from apple.com/opensouce. What is the command to view one directory on the other disk? Is it a variation of 'cd'?

Thanks...
Pollinctor:confused:
 
All of your mounted volumes (hard disks, removable disks, mounted disk images, network volumes, ...) are placed in the /Volumes directory. So if you mount a disk named "Zip100" just "cd /Volumes/Zip100"
 
Another useful way of navigating are the commands pushd and popd.

The following command pushes the current directory on a stack and changes to the new one.

pushd /Volumes/blah/whatever

Then you can pop current directory off the stack with:

popd

To see the directories use

dirs

Also you can swap directories with

push +2

This will swap the current directory with the one 2 down on the stack.

dave
 
Back
Top