Forrest logo
back to the findmnt tool

findmnt:tldr:33311

findmnt: Find filesystems with specific label.
$ findmnt LABEL=${BigStorage}
try on your machine

The command "findmnt LABEL=${BigStorage}" is used to search for the currently mounted filesystem that corresponds to a specific label name ($BigStorage in this case).

Here's a breakdown of the command:

  • "findmnt" is the command itself, used to find mounted filesystems.
  • "LABEL=${BigStorage}" is an argument passed to the command. It utilizes the "LABEL" option of findmnt to look for a filesystem with the label name provided in the variable $BigStorage. Labels are a way to give a name to a filesystem for easier identification.

For example, if you have a filesystem with a label "BigStorage" mounted on your system, running this command will display information about that specific mount point, including the device, source, target directory, type of filesystem, and more.

Note that the '${BigStorage}' syntax indicates that the variable $BigStorage is being used. It should be replaced with the actual label name you wish to search for.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the findmnt tool