Update cheatsheets

This commit is contained in:
ivuorinen
2024-07-11 00:15:37 +00:00
parent 090c38f352
commit 750a1b15d0
13 changed files with 285 additions and 14 deletions

View File

@@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
> Manipulate the UEFI Boot Manager.
> More information: <https://manned.org/efibootmgr>.
- List the current settings then bootnums with their name:
- List all boot options with their numbers:
`efibootmgr`
- List the filepaths:
`efibootmgr -v`
`efibootmgr {{-u|--unicode}}`
- Add UEFI Shell v2 as a boot option:
`sudo efibootmgr -c -d {{/dev/sda1}} -l {{FI ools\Shell.efi}} -L "{{UEFI Shell}}"`
`sudo efibootmgr -c -d {{/dev/sda}} -p {{1}} -l "{{\path o\shell.efi}}" -L "{{UEFI Shell}}"`
- Add Linux as a boot option:
`sudo efibootmgr --create --disk {{/dev/sda}} --part {{1}} --loader "{{ mlinuz}}" --unicode "{{kernel_cmdline}}" --label "{{Linux}}"`
- Change the current boot order:
`sudo efibootmgr -o {{0002,0008,0001,0005}}`
`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}`
- Delete a boot option:
`sudo efibootmgr -b {{0008}} --delete-bootnum`
`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}`