readelf

Displays information about ELF files. More information: <http://man7.org/linux/man-pages/man1/readelf.1.html>.

Install

All systems
curl cmd.cat/readelf.sh
Debian Debian
apt-get install binutils-multiarch
Ubuntu
apt-get install binutils-2.26
Alpine
apk add binutils
Arch Arch Linux
pacman -S aarch64-linux-gnu-binutils
image/svg+xml Kali Linux
apt-get install binutils-mipsisa32r6el-linux-gnu
CentOS
yum install binutils
Fedora
dnf install binutils-arc-linux-gnu
Windows (WSL2)
sudo apt-get update sudo apt-get install binutils-2.26
OS X
brew install binutils
Raspbian
apt-get install binutils-multiarch
Docker
docker run cmd.cat/readelf readelf powered by Commando

Displays information about ELF files. More information: <http://man7.org/linux/man-pages/man1/readelf.1.html>.

  • Display all information about the ELF file:
    readelf -all path/to/binary
  • Display all the headers present in the ELF file:
    readelf --headers path/to/binary
  • Display the entries in symbol table section of the ELF file, if it has one:
    readelf --symbols path/to/binary
  • Display the information contained in the ELF header at the start of the file:
    readelf --file-header path/to/binary

© tl;dr; authors and contributors