Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to mount U disk copy files in linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Linux system how to mount U disk copy files, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

If the linux system cannot remotely transfer files to U disk (for example, the server is not equipped with IP), you need to mount the U disk to a location in the system, and then use the cp command to copy the file. The brief steps are as follows:

1. Insert the flash drive into the Linux computer and make sure the flash drive indicator is on. Enter the main interface of the Linux system, press Ctrl+Alt+T to open the command window, first get the advanced user rights, enter the command: sudo-I (not required for the root account), and then enter the advanced user password

2. First use the fdisk-l command to check whether the U disk has been identified and where the identified U disk is located.

3. The location of the USB flash drive is / dev/Sdb4.

4. Enter the command to mount the USB disk: mount / dev/sdb4 / mnt. After entering enter, the USB disk is mounted successfully. If you continue to enter: enter cd, you can view the files under the USB disk.

5. Now copy the 1.png file on the desktop to the USB disk, enter the command: cp / home/user/desktop/1.png / mnt, enter and wait for the copy to be completed.

6. After the copy is completed, you need to exit the USB flash drive and enter the command: umount / mnt (don't forget ~)

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report