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

How to use U disk in centos

王林
王林Original
2020-05-23 15:17:0611600browse

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

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

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

mkdir -p /mnt/usb

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

mount -o iocharset=cp936 /dev/sdb1 /mnt/usb

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

6. Use the command to unmount:

umount /dev/sdb1

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!

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