[X4U] How do you Change Directory to the CDROM or an external USB drive in terminal

Bill White billwhite at mac.com
Wed Aug 30 12:46:25 PDT 2006


On 8/30/06 3:32 PM, John Richardson <richards at spawar.navy.mil> wrote:

> I insert a CD into the optical drive. Then I want to open terminal. The CD
> appears on the desktop.
> 
> Then Change directory to the CDROM and do an ls.
> 
> I just don't know the target of the cd command.
> 
> Same question only to cd to a USB drive (called happy for example).

To change directory: cd /volumes/CDROM/

Or in the second case: cd /volumes/happy/

You don't have to change directories to do an ls, you can just:

ls /volumes/CDROM/

HTH,

Bill




More information about the X4U mailing list