one of the most important things you should, and will probably have to learn when you're getting started with linux, so lets get right into it!
first of all, we have to see under what name this usb
is located on our machine, for this, we are going to
use the lsblk command, like this:
$ lsblk
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 512M 0 part
├─sda2 8:2 0 15G 0 part /
├─sda3 8:3 0 206.1G 0 part /home
└─sda4 8:4 0 2G 0 part [SWAP]
sdb 8:32 1 14.4G 0 disk
└─sdb1 8:33 1 14.4G 0 part
here you will see your mounted drives, sda will usually be your main drive, and you can tell which one is the USB judging by the size, here its sdb.
we need to make a folder where we can mount the USB drive, we usually make it in the /mnt folder with mkdir
$ sudo mkdir /mnt/usbpoint
then, we need to mount this usb somewhere on our computer,
for this we use the mount commnad,
we will put the partition of our USB, mine being /dev/sdb1
(but it can be a different letter for you)
and use the folder we made
$ sudo mount /dev/sdb1 /mnt/usbpoint
now, to make our lives easier, we can run
$ sudo chown $USER /mnt/usbpoint
with this, we no longer need to write sudo while running commands on the folder.
with this all done, you can now use the
USB as you would any other folder,
with cp, mv, rm
or any other commands you want.