Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/grub-file Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# grub-file
> Check if a file is of a bootable image type.
> More information: <https://manned.org/grub-file>.
- Check if a file is an ARM EFI image:
`grub-file --is-arm-efi {{path/to/file}}`
- Check if a file is an i386 EFI image:
`grub-file --is-i386-efi {{path/to/file}}`
- Check if a file is an x86_64 EFI image:
`grub-file --is-x86_64-efi {{path/to/file}}`
- Check if a file is an ARM image (Linux kernel):
`grub-file --is-arm-linux {{path/to/file}}`
- Check if a file is an x86 image (Linux kernel):
`grub-file --is-x86-linux {{path/to/file}}`
- Check if a file is an x86_64 XNU image (macOS kernel):
`grub-file --is-x86_64-xnu {{path/to/file}}`