Change directory to flash drive

Joined
Oct 24, 2010
Messages
2
Reaction score
0
Points
1
I have a MacBook Pro and havr a uSB flash drive plugged in. A df command shows:

Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk0s2 976101344 258241344 717348000 27% /
devfs 216 216 0 100% /dev
fdesc 2 2 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk3s2 28520 22896 5624 81% /Volumes/Lab Tick
/dev/disk2s1 15617536 34688 15582848 1% /Volumes/8G FLASH

I am trying to change the active dirrectory to the flash drive but the following commands don't work:

rachels-macbook-pro:Users rachel$ cd/Volumes/8G/FLASH
-bash: cd/Volumes/8G/FLASH: No such file or directory
rachels-macbook-pro:Users rachel$
rachels-macbook-pro:Users rachel$ sudo cd /Volumes/8G/FLASH
/usr/bin/cd: line 4: cd: /Volumes/8G/FLASH: No such file or directory
rachels-macbook-pro:Users rachel$

What do I need to do?

George
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Try this:
cd /Volumes/"8G FLASH"
or
cd /Volumes/8G\ Flash
You need to 'escape' the space in the name.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top