Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-01 00:21:57 +00:00
parent a94cb9991c
commit 2a88b0bbe0
12 changed files with 231 additions and 17 deletions

View File

@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo emaint sync {{[-r|--repo]}} {{repository}}`
- Synchronize all repositories:
`sudo emaint sync {{[-A|--allrepos]}}`
- Clear the Portage resume list:
`sudo emaint cleanresume {{[-f|--fix]}}`

View File

@@ -6,17 +6,25 @@ source: https://github.com/tldr-pages/tldr.git
# fdisk
> Manage partition tables and partitions on a storage drive.
> See also: `partprobe`.
> See also: `partprobe`, `parted`, `cfdisk`.
> More information: <https://manned.org/fdisk>.
- List partitions:
`sudo fdisk {{[-l|--list]}}`
- Start the partition manipulator:
- Start the interactive partition manipulator:
`sudo fdisk {{/dev/sdX}}`
- Open a help [m]enu:
`<m>`
- View the [p]artition table:
`<p>`
- Create a [n]ew partition:
`<n>`
@@ -25,10 +33,6 @@ source: https://github.com/tldr-pages/tldr.git
`<d>`
- View the [p]artition table:
`<p>`
- [w]rite the changes made:
`<w>`
@@ -36,7 +40,3 @@ source: https://github.com/tldr-pages/tldr.git
- Discard the changes made and [q]uit:
`<q>`
- Open a help [m]enu:
`<m>`

View File

@@ -11,16 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
- Set the max number of counts before a filesystem is checked to 2:
`tune2fs -c 2 {{/dev/sdXN}}`
`sudo tune2fs -c 2 {{/dev/sdXN}}`
- Set the filesystem label to MY_LABEL:
`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
- Enable discard and user-specified extended attributes for a filesystem:
`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}`
`sudo tune2fs -o discard,user_xattr {{/dev/sdXN}}`
- Enable journaling for a filesystem:
`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}`
`sudo tune2fs -o has_journal {{/dev/sdXN}}`
- Assign a new randomly-generated UUID to a filesystem:
`sudo tune2fs -U random {{/dev/sdXN}}`