Files
tldr/pages.zh/linux/grub-file.md

28 lines
733 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# grub-file
> 检查一个文件是否为可引导映像类型。
> 更多信息:<https://manned.org/grub-file>。
- 检查一个文件是否为 ARM EFI 映像:
`grub-file --is-arm-efi {{path/to/file}}`
- 检查一个文件是否为 i386 EFI 映像:
`grub-file --is-i386-efi {{path/to/file}}`
- 检查一个文件是否为 x86_64 EFI 映像:
`grub-file --is-x86_64-efi {{path/to/file}}`
- 检查一个文件是否为 ARM 映像Linux 内核):
`grub-file --is-arm-linux {{path/to/file}}`
- 检查一个文件是否为 x86 映像Linux 内核):
`grub-file --is-x86-linux {{path/to/file}}`
- 检查一个文件是否为 x86_64 XNU 映像macOS 内核):
`grub-file --is-x86_64-xnu {{path/to/file}}`