{
    "mode": "man",
    "parameter": "grub-file",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/grub-file/1/json",
    "generated": "2026-05-30T05:15:08Z",
    "synopsis": "file OPTIONS FILE",
    "sections": {
        "NAME": {
            "content": "grub-file - check file type\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "file OPTIONS FILE\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Check if FILE is of specified type.\n",
            "subsections": [
                {
                    "name": "--is-i386-xen-pae-domu",
                    "content": "Check if FILE can be booted as i386 PAE Xen unprivileged guest kernel\n\n--is-x8664-xen-domu\nCheck if FILE can be booted as x8664 Xen unprivileged guest kernel\n",
                    "long": "--is-i386-xen-pae-domu"
                },
                {
                    "name": "--is-x86-xen-dom0",
                    "content": "Check if FILE can be used as Xen x86 privileged guest kernel\n",
                    "long": "--is-x86-xen-dom0"
                },
                {
                    "name": "--is-x86-multiboot",
                    "content": "Check if FILE can be used as x86 multiboot kernel\n\n--is-x86-multiboot2 Check if FILE can be used as x86 multiboot2 kernel\n",
                    "long": "--is-x86-multiboot"
                },
                {
                    "name": "--is-arm-linux",
                    "content": "Check if FILE is ARM Linux\n",
                    "long": "--is-arm-linux"
                },
                {
                    "name": "--is-arm64-linux",
                    "content": "Check if FILE is ARM64 Linux\n",
                    "long": "--is-arm64-linux"
                },
                {
                    "name": "--is-ia64-linux",
                    "content": "Check if FILE is IA64 Linux\n",
                    "long": "--is-ia64-linux"
                },
                {
                    "name": "--is-mips-linux",
                    "content": "Check if FILE is MIPS Linux\n",
                    "long": "--is-mips-linux"
                },
                {
                    "name": "--is-mipsel-linux",
                    "content": "Check if FILE is MIPSEL Linux\n",
                    "long": "--is-mipsel-linux"
                },
                {
                    "name": "--is-sparc64-linux",
                    "content": "Check if FILE is SPARC64 Linux\n",
                    "long": "--is-sparc64-linux"
                },
                {
                    "name": "--is-powerpc-linux",
                    "content": "Check if FILE is POWERPC Linux\n",
                    "long": "--is-powerpc-linux"
                },
                {
                    "name": "--is-x86-linux",
                    "content": "Check if FILE is x86 Linux\n",
                    "long": "--is-x86-linux"
                },
                {
                    "name": "--is-x86-linux32",
                    "content": "Check if FILE is x86 Linux supporting 32-bit protocol\n",
                    "long": "--is-x86-linux32"
                },
                {
                    "name": "--is-x86-kfreebsd",
                    "content": "Check if FILE is x86 kFreeBSD\n",
                    "long": "--is-x86-kfreebsd"
                },
                {
                    "name": "--is-i386-kfreebsd",
                    "content": "Check if FILE is i386 kFreeBSD\n\n--is-x8664-kfreebsd\nCheck if FILE is x8664 kFreeBSD\n",
                    "long": "--is-i386-kfreebsd"
                },
                {
                    "name": "--is-x86-knetbsd",
                    "content": "Check if FILE is x86 kNetBSD\n",
                    "long": "--is-x86-knetbsd"
                },
                {
                    "name": "--is-i386-knetbsd",
                    "content": "Check if FILE is i386 kNetBSD\n\n--is-x8664-knetbsd Check if FILE is x8664 kNetBSD\n",
                    "long": "--is-i386-knetbsd"
                },
                {
                    "name": "--is-i386-efi",
                    "content": "Check if FILE is i386 EFI file\n\n--is-x8664-efi\nCheck if FILE is x8664 EFI file\n",
                    "long": "--is-i386-efi"
                },
                {
                    "name": "--is-ia64-efi",
                    "content": "Check if FILE is IA64 EFI file\n",
                    "long": "--is-ia64-efi"
                },
                {
                    "name": "--is-arm64-efi",
                    "content": "Check if FILE is ARM64 EFI file\n",
                    "long": "--is-arm64-efi"
                },
                {
                    "name": "--is-arm-efi",
                    "content": "Check if FILE is ARM EFI file\n",
                    "long": "--is-arm-efi"
                },
                {
                    "name": "--is-riscv32-efi",
                    "content": "Check if FILE is RISC-V 32bit EFI file\n",
                    "long": "--is-riscv32-efi"
                },
                {
                    "name": "--is-riscv64-efi",
                    "content": "Check if FILE is RISC-V 64bit EFI file\n",
                    "long": "--is-riscv64-efi"
                },
                {
                    "name": "--is-hibernated-hiberfil",
                    "content": "Check if FILE is hiberfil.sys in hibernated state\n\n--is-x8664-xnu\nCheck if FILE is x8664 XNU (Mac OS X kernel)\n",
                    "long": "--is-hibernated-hiberfil"
                },
                {
                    "name": "--is-i386-xnu",
                    "content": "Check if FILE is i386 XNU (Mac OS X kernel)\n",
                    "long": "--is-i386-xnu"
                },
                {
                    "name": "--is-xnu-hibr",
                    "content": "Check if FILE is XNU (Mac OS X kernel) hibernated image\n",
                    "long": "--is-xnu-hibr"
                },
                {
                    "name": "--is-x86-bios-bootsector",
                    "content": "Check if FILE is BIOS bootsector\n",
                    "long": "--is-x86-bios-bootsector"
                },
                {
                    "name": "-h --help -u --usage",
                    "content": "age of this command and exit.\n",
                    "flag": "-u",
                    "long": "--usage"
                }
            ]
        },
        "SEE ALSO": {
            "content": "The full documentation for grub-file is maintained as a Texinfo  manual.   If  the  info  and\ngrub-file programs are properly installed at your site, the command\n\ninfo grub-file\n\nshould give you access to the complete manual.\n\n\n\nGRUB 2.06-2ubuntu7.2                        December 2022                               GRUB-FILE(1)",
            "subsections": []
        }
    },
    "summary": "grub-file - check file type",
    "flags": [
        {
            "flag": "",
            "long": "--is-i386-xen-pae-domu",
            "arg": null,
            "description": "Check if FILE can be booted as i386 PAE Xen unprivileged guest kernel --is-x8664-xen-domu Check if FILE can be booted as x8664 Xen unprivileged guest kernel"
        },
        {
            "flag": "",
            "long": "--is-x86-xen-dom0",
            "arg": null,
            "description": "Check if FILE can be used as Xen x86 privileged guest kernel"
        },
        {
            "flag": "",
            "long": "--is-x86-multiboot",
            "arg": null,
            "description": "Check if FILE can be used as x86 multiboot kernel --is-x86-multiboot2 Check if FILE can be used as x86 multiboot2 kernel"
        },
        {
            "flag": "",
            "long": "--is-arm-linux",
            "arg": null,
            "description": "Check if FILE is ARM Linux"
        },
        {
            "flag": "",
            "long": "--is-arm64-linux",
            "arg": null,
            "description": "Check if FILE is ARM64 Linux"
        },
        {
            "flag": "",
            "long": "--is-ia64-linux",
            "arg": null,
            "description": "Check if FILE is IA64 Linux"
        },
        {
            "flag": "",
            "long": "--is-mips-linux",
            "arg": null,
            "description": "Check if FILE is MIPS Linux"
        },
        {
            "flag": "",
            "long": "--is-mipsel-linux",
            "arg": null,
            "description": "Check if FILE is MIPSEL Linux"
        },
        {
            "flag": "",
            "long": "--is-sparc64-linux",
            "arg": null,
            "description": "Check if FILE is SPARC64 Linux"
        },
        {
            "flag": "",
            "long": "--is-powerpc-linux",
            "arg": null,
            "description": "Check if FILE is POWERPC Linux"
        },
        {
            "flag": "",
            "long": "--is-x86-linux",
            "arg": null,
            "description": "Check if FILE is x86 Linux"
        },
        {
            "flag": "",
            "long": "--is-x86-linux32",
            "arg": null,
            "description": "Check if FILE is x86 Linux supporting 32-bit protocol"
        },
        {
            "flag": "",
            "long": "--is-x86-kfreebsd",
            "arg": null,
            "description": "Check if FILE is x86 kFreeBSD"
        },
        {
            "flag": "",
            "long": "--is-i386-kfreebsd",
            "arg": null,
            "description": "Check if FILE is i386 kFreeBSD --is-x8664-kfreebsd Check if FILE is x8664 kFreeBSD"
        },
        {
            "flag": "",
            "long": "--is-x86-knetbsd",
            "arg": null,
            "description": "Check if FILE is x86 kNetBSD"
        },
        {
            "flag": "",
            "long": "--is-i386-knetbsd",
            "arg": null,
            "description": "Check if FILE is i386 kNetBSD --is-x8664-knetbsd Check if FILE is x8664 kNetBSD"
        },
        {
            "flag": "",
            "long": "--is-i386-efi",
            "arg": null,
            "description": "Check if FILE is i386 EFI file --is-x8664-efi Check if FILE is x8664 EFI file"
        },
        {
            "flag": "",
            "long": "--is-ia64-efi",
            "arg": null,
            "description": "Check if FILE is IA64 EFI file"
        },
        {
            "flag": "",
            "long": "--is-arm64-efi",
            "arg": null,
            "description": "Check if FILE is ARM64 EFI file"
        },
        {
            "flag": "",
            "long": "--is-arm-efi",
            "arg": null,
            "description": "Check if FILE is ARM EFI file"
        },
        {
            "flag": "",
            "long": "--is-riscv32-efi",
            "arg": null,
            "description": "Check if FILE is RISC-V 32bit EFI file"
        },
        {
            "flag": "",
            "long": "--is-riscv64-efi",
            "arg": null,
            "description": "Check if FILE is RISC-V 64bit EFI file"
        },
        {
            "flag": "",
            "long": "--is-hibernated-hiberfil",
            "arg": null,
            "description": "Check if FILE is hiberfil.sys in hibernated state --is-x8664-xnu Check if FILE is x8664 XNU (Mac OS X kernel)"
        },
        {
            "flag": "",
            "long": "--is-i386-xnu",
            "arg": null,
            "description": "Check if FILE is i386 XNU (Mac OS X kernel)"
        },
        {
            "flag": "",
            "long": "--is-xnu-hibr",
            "arg": null,
            "description": "Check if FILE is XNU (Mac OS X kernel) hibernated image"
        },
        {
            "flag": "",
            "long": "--is-x86-bios-bootsector",
            "arg": null,
            "description": "Check if FILE is BIOS bootsector"
        },
        {
            "flag": "-u",
            "long": "--usage",
            "arg": null,
            "description": "age of this command and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "GRUB-FILE",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/GRUB-FILE/1/json"
        }
    ]
}