On aarch64: $ file -L /boot/Image /boot/Image: MS-DOS executable, MZ for MS-DOS $ get_kernel_version /boot/Image 4.0.0-1-default