# umount - [命令功能](#section01) - [命令格式](#section02) - [参数说明](#section03) - [使用指南](#section04) - [使用实例](#section05) - [输出说明](#section06) ## 命令功能 umount命令用来卸载指定文件系统。 ## 命令格式 umount \[_-a \[-t TYPE\]_\] \[_dir_\] ## 参数说明 **表 1** 参数说明

参数

参数说明

取值范围

--help

查看umount命令支持的参数列表。

N/A

-a

卸载所有已挂载的目录。

N/A

-t

同-a选项一起使用,限制-a,只卸载-t所指定的文件系统类型。

N/A

dir

需要卸载文件系统对应的目录。

系统已挂载的文件系统的目录。

## 使用指南 umount后加上需要卸载的指定文件系统的目录,即将指定文件系统卸载。 ## 使用实例 举例: - umount ./nfs - umount -a -t nfs ./nfs ## 输出说明 将已在./nfs挂载的文件系统卸载掉。 **示例 1** umount输出示例 ```shell OHOS:/$ umount ./nfs/ umount ok ``` **示例 2** umount指定文件类型 ```shell OHOS:/$ umount -a -t nfs ./nfs/ umount ok ```