Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
linux/umount Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# umount
> Unlink a filesystem from its mount point, making it no longer accessible.
> A filesystem cannot be unmounted when it is busy.
> More information: <https://manned.org/umount.8>.
- Unmount a filesystem, by passing the path to the source it is mounted from:
`umount {{path/to/device_file}}`
- Unmount a filesystem, by passing the path to the target where it is mounted:
`umount {{path/to/mounted_directory}}`
- When an unmount fails, try to remount the filesystem read-only:
`umount --read-only {{path/to/mounted_directory}}`
- Recursively unmount each specified directory:
`umount --recursive {{path/to/mounted_directory}}`
- Unmount all mounted filesystems (except the `proc` filesystem):
`umount -a`