mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 14:47:26 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Back up the partition layout to a file:
|
||||
|
||||
`sudo sfdisk {{[-d|--dump]}} {{path/to/device}} > {{path/to/file.dump}}`
|
||||
`sudo sfdisk {{[-d|--dump]}} {{/dev/sdX}} > {{path/to/file.dump}}`
|
||||
|
||||
- Restore a partition layout:
|
||||
|
||||
`sudo sfdisk < {{path/to/file.dump}} {{path/to/device}}`
|
||||
`sudo sfdisk < {{path/to/file.dump}} {{/dev/sdX}}`
|
||||
|
||||
- Set the type of a partition:
|
||||
|
||||
`sfdisk --part-type {{path/to/device}} {{partition_number}} {{swap}}`
|
||||
`sudo sfdisk --part-type {{/dev/sdX}} {{partition_number}} {{swap}}`
|
||||
|
||||
- Delete a partition:
|
||||
|
||||
`sfdisk --delete {{path/to/device}} {{partition_number}}`
|
||||
`sudo sfdisk --delete {{/dev/sdX}} {{partition_number}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user