umount
Command Function
This command is used to unmount a specified file system.
Syntax
umount [-a [-t TYPE]] [dir]
Parameters
Table 1 Parameter description
Usage
By specifying the dir parameter in the unmount command, you can unmount the specified file system from the directory.
Example
Run the following commands:
- umount ./nfs
- umount -a -t nfs
Output
unmount command output:
Example 1: unmounting the file system from ./nfs
OHOS:/$ umount ./nfs/
umount ok
Example 2: unmounting all NFS directories
OHOS:/$ umount -a -t nfs
umount ok