Home>Article>Operation and Maintenance> 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!