11.1 File identification

The file identification is done through the -I flag, it will output information regarding binary class, encoding, OS, type, etc.

$ rabin -I /bin/ls
[Information]
class=ELF32
enconding=2's complement, little endian
os=linux
machine=Intel 80386
arch=intel
type=EXEC (Executable file)
stripped=Yes
static=No
baddr=0x0804800

As it was said we can add the -r flag to use all this information in radare:

$ rabin -Ir /bin/ls
e file.type = elf
e io.vaddr = 0x08048000
e cfg.bigendian = false
e dbg.dwarf = false
e asm.os = linux
e asm.arch = intel

This is automatically done at startup if we append to our configuration file (.radarerc) the eval command "eval file.id = true".