How to Copy Files to Your Usb from the Terminal

Do you like to learn another terminal tip? In this article, we will teach you how to copy files to your usb device from the terminal. The following screenshot shows a file I want to copy to my usb device.

I have a file with the name "Little_snowflake.mp3" file on my Desktop and I would like to copy it to my USB drive.

how to copy files to your usb from terminal

1) Change to USB Mounted directory

Change directory with the following command and find out the name of your usb stick.

cd /media

how to copy files to your usb from the terminal

2) List Content inside USB Drive

As you can see from the following screenshot, mine is LINOXIDE_US.

how to copy files from your terminal

3) Copy file to USB

Now you can easily use the cp command to copy files to your usb.

cp /home/oltjano/Desktop/Little_snowflake.mp3 /media/LINOXIDE_US/

4) Verify File

Run ls inside your /media/usb_directory to make sure files are copied.

how to copy files from your terminal

Oltjano Terpollari 3:00 am

Comments

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

1 Comment