Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-12 00:18:03 +00:00
parent 4ed84edbe1
commit ffbd8c31db
29 changed files with 244 additions and 70 deletions

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Mount a device to a directory:
`mount -t {{filesystem_type}} {{path/to/device_file}} {{path/to/target_directory}}`
`mount {{[-t|--types]}} {{filesystem_type}} {{path/to/device_file}} {{path/to/target_directory}}`
- Create a specific directory if it does not exist and mount a device to it:
`mount --mkdir {{path/to/device_file}} {{path/to/target_directory}}`
`mount {{[-m|--mkdir]}} {{path/to/device_file}} {{path/to/target_directory}}`
- Mount a device to a directory for a specific user:
`mount -o uid={{user_id}},gid={{group_id}} {{path/to/device_file}} {{path/to/target_directory}}`
`mount {{[-o|--options]}} uid={{user_id}},gid={{group_id}} {{path/to/device_file}} {{path/to/target_directory}}`
- Mount a CD-ROM device (with the filetype ISO9660) to `/cdrom` (readonly):
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}`
- Mount all the filesystem defined in `/etc/fstab`:
`mount -a`
`mount {{[-a|--all]}}`
- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /my_drive ext2 defaults 0 2`):
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
- Mount a directory to another directory:
`mount --bind {{path/to/old_dir}} {{path/to/new_dir}}`
`mount {{[-B|--bind]}} {{path/to/old_dir}} {{path/to/new_dir}}`