grub-file

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

Install

All systems
curl cmd.cat/grub-file.sh
Debian Debian
apt-get install grub-common
Ubuntu
apt-get install grub-common
Alpine
apk add grub
Arch Arch Linux
pacman -S grub
image/svg+xml Kali Linux
apt-get install grub-common
CentOS
yum install grub
Windows (WSL2)
sudo apt-get update sudo apt-get install grub-common
Raspbian
apt-get install grub-common
Docker
docker run cmd.cat/grub-file grub-file powered by Commando

Check if a file is of a specific 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 (Mac OS X kernel):
    grub-file --is-x86_64-xnu path/to/file

© tl;dr; authors and contributors