ubuntu ssh interface to read U disk data

1. Check the disk after plugging in the USB:

sudo fdisk -l		#查看U盘在Ubuntu里面的磁盘名称

Get:
insert image description here
Get the disk name as /dev/sdd1
2. Mount the U disk:

sudo mount /dev/sda1 /sdd1  #将U盘挂载到/mnt 目录下

3. Switch to the /sdd1 directory:

cd /sdd1

insert image description here
4. Copy the folder by cp -r:

cp -r /sdd1/coco_data_ data

insert image description here
5. Uninstall the U disk:

sudo umount /sdd1

Guess you like

Origin blog.csdn.net/qq_41318914/article/details/130565978