Home >Operation and Maintenance >Linux Operation and Maintenance >Can Linux copy files to a USB flash drive?

Can Linux copy files to a USB flash drive?

WBOY
WBOYOriginal
2022-08-17 17:06:3312769browse

Linux can copy files to USB disk. Method: 1. Use the "fdisk -l" command to check whether the U disk is recognized and check the location of the U disk; 2. Use the "mount U disk location/mnt" command to mount the U disk; 3. Use "cp to specify the file /mnt" command to copy the files to the USB flash drive; 4. Use the "umount /mnt" command to exit the USB flash drive.

Can Linux copy files to a USB flash drive?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Can Linux copy files to a USB flash drive?

Under Linux, everything is treated as a file. If you need to copy files under the Linux system, you need to mount the USB flash drive first. A certain location in the system, and then use the cp command to complete the copy.

Method:

1. Insert the U disk into the Linux computer and make sure the U disk indicator light is on

Enter the main interface of the Linux system, press Ctrl Alt T to open the command window,

Obtain advanced user permissions first

Enter the command: sudo -i, and enter the advanced user password after confirmation

First, use the fdisk -l command to check whether the U disk has been recognized and where the recognized U disk is.

Can Linux copy files to a USB flash drive?

The location of the U disk seen during this access It is /dev/Sdb4

Can Linux copy files to a USB flash drive?

2. Enter the command to mount the USB disk: mount /dev/sdb4 /mnt

and press Enter After that, the U disk is mounted successfully

Continue to enter: cd and press Enter, you can view the files under the U disk

Can Linux copy files to a USB flash drive?

3. Now copy the desktop 1.png file on the U disk to the U disk

Enter the command: cp /home/user/desktop/1.png /mnt

Press Enter and wait for the copy to complete

Can Linux copy files to a USB flash drive?

4. After the copy is completed, you need to exit the U disk

Enter the command: umount /mnt

Can Linux copy files to a USB flash drive?

Recommended learning: Linux video tutorial

The above is the detailed content of Can Linux copy files to a USB flash drive?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn