1

Linux常用命令-17:mount

 1 year ago
source link: https://xugaoxiang.com/2022/06/04/linux-cmds-17-mount/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

mount 命令用于挂载文件系统到指定的加载点(也就是目录)。常用于服务器版中挂载 U 盘和使用网络文件系统 NFS

语法格式:mount [参数]

常用参数:

8efaa7d3bd2f0f87.png
# 查看所有挂载
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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK