Using a U disk under linux for copying files is very convenient. therefore, have you ever thought about how to copy files to U Disk under Linux systems? Now, let me show you how to do it.
1. Check U Disk
First of all, we need to check if the U disk is normal. We can use the`lsblk` command to view the devices on the system. For example, in the command line input `lsblk` you can see the device information.
2. Use the`cp` command
After learning the U disk device information, we can open two terminal windows. One window opens the folder where the file is placed, and the other window opens the mounted U disk directory. Then, in the file directory window, enter the`cp` command to copy the file to the U disk directory.
Take a file named `test.txt` as an example, we can enter the following command in the file directory window:
`cp test.txt /media/xxx/xxx`
In this command, the latter part should be replaced by the actual mounted U disk directory. After entering this command, the `test.txt` file can be copied to the U disk.
3. Use the`mv` command
If you just need to move the file from one location to the other, instead of making an additional copy of it, you can use the `mv` command . The usage is similar to that of the `cp` command, taking the same `test.txt` file for example, you can enter the `mv` command as followed:
`mv test.txt /media/xxx/xxx`
After executing the command, the`test.txt`file will be moved to the U disk.
To sum up, under the Linux system, copying files to a U disk is very simple. The operating steps are as follows: check the U disk device information, use the`cp` or`mv` command to copy or move the file to the U disk directory respectively.
成都服务器租用选创新互联,先试用再开通。
创新互联(www.cdcxhl.com)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。物理服务器托管租用:四川成都、绵阳、重庆、贵阳机房服务器托管租用。
文章标题:Linux拷贝文件到U盘的方法(linux拷贝文件到u盘)
文章源于:http://www.shufengxianlan.com/qtweb/news38/389638.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联