Scroll to navigation

GRUB-FILE(1) User Commands GRUB-FILE(1)

NAME

grub-file - check file type

SYNOPSIS

file OPTIONS FILE

DESCRIPTION

Check if FILE is of specified type.

Check if FILE can be booted as i386 PAE Xen unprivileged guest kernel
Check if FILE can be booted as x86_64 Xen unprivileged guest kernel
Check if FILE can be used as Xen x86 privileged guest kernel
Check if FILE can be used as x86 multiboot kernel

--is-x86-multiboot2 Check if FILE can be used as x86 multiboot2 kernel

Check if FILE is ARM Linux
Check if FILE is ARM64 Linux
Check if FILE is IA64 Linux
Check if FILE is MIPS Linux
Check if FILE is MIPSEL Linux
Check if FILE is SPARC64 Linux
Check if FILE is POWERPC Linux
Check if FILE is x86 Linux
Check if FILE is x86 Linux supporting 32-bit protocol
Check if FILE is x86 kFreeBSD
Check if FILE is i386 kFreeBSD
Check if FILE is x86_64 kFreeBSD
Check if FILE is x86 kNetBSD
Check if FILE is i386 kNetBSD

--is-x86_64-knetbsd Check if FILE is x86_64 kNetBSD

Check if FILE is i386 EFI file
Check if FILE is x86_64 EFI file
Check if FILE is IA64 EFI file
Check if FILE is ARM64 EFI file
Check if FILE is ARM EFI file
Check if FILE is RISC-V 32bit EFI file
Check if FILE is RISC-V 64bit EFI file
Check if FILE is hiberfil.sys in hibernated state
Check if FILE is x86_64 XNU (Mac OS X kernel)
Check if FILE is i386 XNU (Mac OS X kernel)
Check if FILE is XNU (Mac OS X kernel) hibernated image
Check if FILE is BIOS bootsector

-h, --help Display this help and exit. -u, --usage Display the usage of this command and exit.

SEE ALSO

The full documentation for grub-file is maintained as a Texinfo manual. If the info and grub-file programs are properly installed at your site, the command

info grub-file

should give you access to the complete manual.

October 2023 GRUB 2.06-13+deb12u1