mount
cmd/mount
Filesystem mount management
Overview
mount manages filesystem mounts.
Main subcommands:
listshows mounted filesystems.addmounts a device on a mount point.removeunmounts 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
| Name | Description |
|---|---|
list |
List mounted filesystems |
add |
Mount a filesystem |
remove |
Unmount a filesystem |
Exit Codes
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Runtime/command error |
2 |
Invalid flags/usage |