Skip to content

Commit 5d62421

Browse files
authored
umount: add sudo (#17605)
Update umount.md
1 parent 0549fae commit 5d62421

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pages/linux/umount.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
77
- Unmount a filesystem, by passing the path to the source it is mounted from:
88

9-
`umount {{path/to/device_file}}`
9+
`sudo umount {{path/to/device_file}}`
1010

1111
- Unmount a filesystem, by passing the path to the target where it is mounted:
1212

13-
`umount {{path/to/mounted_directory}}`
13+
`sudo umount {{path/to/mounted_directory}}`
1414

1515
- When an unmount fails, try to remount the filesystem read-only:
1616

17-
`umount {{[-r|--read-only]}} {{path/to/mounted_directory}}`
17+
`sudo umount {{[-r|--read-only]}} {{path/to/mounted_directory}}`
1818

1919
- Recursively unmount each specified directory:
2020

21-
`umount {{[-R|--recursive]}} {{path/to/mounted_directory}}`
21+
`sudo umount {{[-R|--recursive]}} {{path/to/mounted_directory}}`
2222

2323
- Unmount all mounted filesystems (except the `proc` filesystem):
2424

25-
`umount {{[-a|--all]}}`
25+
`sudo umount {{[-a|--all]}}`

0 commit comments

Comments
 (0)