file (Linux)

To check whether a file is ELF file.

$ file elf_file

If it prints ELF in the output then the file is an ELF file.