LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Move file from a USB stick to an SD card (https://www.linuxquestions.org/questions/linux-newbie-8/move-file-from-a-usb-stick-to-an-sd-card-642522/)

otterbuff 05-15-2008 08:26 PM

Move file from a USB stick to an SD card
 
I am working with an OLPC XO in Terminal. I have a file (called olpc.fth) that I need to move from my USB stick to my SD card. However, I cannot figure out how to do that via terminal. My card and stick are mounted, but I am not sure how to access them and see what is on them. I ASSumed it would be a copy (cp) command, however, since I cannot figure out how to even get onto the USB stick, I can't get to that step. TIA.

onebuck 05-15-2008 09:16 PM

Hi,

If the devices are mounted then from the terminal/console;

Code:

~#ls /mountpoint_USB_stick  #list contents
~#ls /mountpoint_SD          #list contents
~#cp -p /mountpoint_USB_stick/somefile /mountpoint_SD/someNewFile

The above will copy the file from the usb_stick to the SD. You can 'man cp'


All times are GMT -5. The time now is 10:59 AM.