HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

grub-file — Check if a file is of a bootable image type. More information: <https://manned.org/grub-file>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandclifileimagechecktypebootablegrub-file
linux

Problem

How to use the grub-file command: Check if a file is of a bootable image type. More information: <https://manned.org/grub-file>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: linux/grub-file

Revisions (0)

No revisions yet.