Copy files from computer to USB using linux command prompt

Somebody lately, asked a silly simple thing- how can he copy files from his computer to usb and he’s using linux? Actually any novice can ask this simple thing- as GUI interface is already became quite mature than earlier and ppl naturally forgetting command consoles. Anyways, here goes it like this-

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
cp yourfile /mnt/sda1
sync
umount /mnt/sda1

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.