mount

cmd/mount

Filesystem mount management

Overview

mount manages filesystem mounts.

Main subcommands:

  • list shows mounted filesystems.
  • add mounts a device on a mount point.
  • remove unmounts a mount point.

Example usage:

mount list
mount add /dev/sda1 /mnt/data --type ext4
mount remove /mnt/data

Note:

  • Mount operations usually require elevated privileges.

Usage

  • mount <subcommand> [options] [args]

Subcommands

NameDescription
list List mounted filesystems
add Mount a filesystem
remove Unmount a filesystem

Exit Codes

CodeMeaning
0 Success
1 Runtime/command error
2 Invalid flags/usage