unmount command

Purpose

Unmounts a previously mounted file system, directory, or file.

Syntax

unmount { Directory | File | FileSystem }

Description

The unmount command unmounts a previously mounted directory, file, or file system. Processing on the file system, directory, or file completes and it is unmounted.

To unmount local mounts you can specify the device, directory, file, or file system on which it is mounted.

Examples

  1. To unmount files and directories, type the following command:
    unmount /home/user/test
    This unmounts the filesystem mounted at /home/user/test.



Last updated: Wed, November 18, 2020