Check if a file is of a specific bootable image…
Check if a file is of a specific bootable image type. More information: https://manned.org/grub-file.
grub-file --is-arm-efi {{path/to/file}}
grub-file --is-i386-efi {{path/to/file}}
grub-file --is-x86_64-efi {{path/to/file}}
grub-file --is-arm-linux {{path/to/file}}
grub-file --is-x86-linux {{path/to/file}}
grub-file --is-x86_64-xnu {{path/to/file}}