Saturday 4 June 2011

How do you use cd to change to another disk?

I am trying to program Ruby but since I want to use it on any computer, I saved it onto my usb drive. However, I don%26#039;t know how do run it from the command prompt, because my command to go up a directory only gets me to C:, then I cant go any farther. Please explain in Mac, Linux, and Windows versions.|||This is how Windows does it.





If you want to switch drive just type in the letter of the drive followed by colon.


So for your E drive you%26#039;d type in


E:





For Linux or Mac you use the dev.


mount /dev/sda1 /mnt/usbflash


ls usbflash