Linux common commands-17: mount

The mount command is used to mount the file system to the specified mount point (that is, the directory). Commonly used in server version to mount U disk and use network file system NFS .

Syntax format: mount [parameter]

Common parameters:

Example

 # 查看所有挂载mount # 将sdb设备的第一个分区挂载到/mnt目录下。如果系统中只有一块硬盘,接入u盘后,一般sdb1就是u盘,可以查看/dev/下的设备节点来确认mount /dev/sdb1 /mnt # 指定文件系统类型mount -t ext4 /dev/sda5 /tmp # 挂载nfs mount -t nfs 192.168.1.100:/nfs /tmp

This article is reprinted from https://xugaoxiang.com/2022/06/04/linux-cmds-17-mount/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment