Home > Operation and Maintenance > CentOS > How to use U disk in centos

How to use U disk in centos

王林
Release: 2020-05-23 15:17:06
Original
11629 people have browsed it

How to use U disk in centos

To use the U disk, we need to mount the U disk. The specific method is as follows:

1. Check the system hard disk and partition status

fdisk -l
Copy after login
Copy after login

2. Insert the U disk, and use the command again to view and confirm your U disk

At this time, our system should have an additional hard disk /dev/sdb and its partition /dev/sdb1.

fdisk -l
Copy after login
Copy after login

3. Use the command to create the directory usb in the mnt directory as the mount point

mkdir -p /mnt/usb
Copy after login

4. To mount the U disk, use the command:

mount -o iocharset=cp936 /dev/sdb1 /mnt/usb
Copy after login

Among them, - o iocharset is to set the character set to ensure that Chinese can be displayed normally.

5. After successful mounting, you can use the command to view the contents of the U disk

ls /mnt/usb
Copy after login

6. Use the command to unmount:

umount /dev/sdb1
Copy after login

Recommended tutorial: centos tutorial

The above is the detailed content of How to use U disk in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template