Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-12 00:20:22 +00:00
parent 3f758d63f7
commit 8b085234e1
6 changed files with 193 additions and 0 deletions

42
tldr/linux/gdisk Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# gdisk
> GPT (GUID Partition Table) disk partitioning tool.
> See also: `cfdisk`, `fdisk`, `parted`.
> More information: <https://manned.org/gdisk>.
- List partitions:
`sudo gdisk {{[-l|--list]}}`
- Start the interactive partition manipulator:
`sudo gdisk {{/dev/sdX}}`
- Open a help menu:
`<?>`
- Print the [p]artition table:
`<p>`
- Add a [n]ew partition:
`<n>`
- Select a partition to [d]elete:
`<d>`
- [w]rite table to disk and exit:
`<w>`
- [q]uit without saving changes:
`<q>`