Forrest logo
tool overview
On this page you find all important commands for the CLI tool mountpoint. If the command you are looking for is missing please ask our AI.

mountpoint

Mountpoint is a command line tool in Unix-like operating systems that allows users to identify if a given directory is a mountpoint or not. It is commonly used to determine the mountpoint of a mounted file system. When provided with a single argument (a directory path), mountpoint checks if the specified directory is a mountpoint and returns an exit status of 0 if it is, and non-zero if it is not. This tool helps in understanding the file system hierarchy and the mounted file systems within it. It can be utilized to determine if a directory is a mountpoint before performing specific operations to avoid unintentional modifications. Mountpoint is usually included as part of the util-linux package in many Linux distributions.

List of commands for mountpoint:

  • mountpoint:tldr:215c8 mountpoint: Check if a directory is a mountpoint.
    $ mountpoint ${path-to-directory}
    try on your machine
    explain this command
  • mountpoint:tldr:38fa6 mountpoint: Show major/minor numbers of a mountpoint's filesystem.
    $ mountpoint --fs-devno ${path-to-directory}
    try on your machine
    explain this command
  • mountpoint:tldr:9a4c3 mountpoint: Check if a directory is a mountpoint without showing any output.
    $ mountpoint -q ${path-to-directory}
    try on your machine
    explain this command
tool overview