1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 21:26:02 +02:00

Merge pull request #128 from martypenner/master

Add tldr pages for `mount` and `umount`
This commit is contained in:
Romain Prieto 2014-02-28 13:41:23 +11:00
commit fcd2a89893
2 changed files with 39 additions and 0 deletions

23
common/mount.md Normal file
View file

@ -0,0 +1,23 @@
# mount
> Provides access to an entire filesystem in one directory.
- Show all mounted filesystems
`mount`
- Mount a device
`mount -t {{filesystem_type}} {{path_to_device_file}} {{directory_to_mount_to}}`
- Mount a CD-ROM device (with the filetype ISO9660) to /cdrom (readonly)
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
- Mount all the filesystem defined in /etc/fstab
`mount -a`
- Mount a specific filesystem described in /etc/fstab (e.g. "/dev/sda1 /my_drive ext2 defaults 0 2")
`mount {{/my_drive}}`

16
common/umount.md Normal file
View file

@ -0,0 +1,16 @@
# umount
> Revokes access to an entire filesystem mounted to a directory.
> A filesystem cannot be unmounted when it is busy.
- Unmount a filesystem
`umount {{path_to_device_file}}`
- OR
`umount {{path_to_mounted_directory}}`
- Unmount all mounted filesystems (dangerous!)
`umount -a`