1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 20:35:23 +02:00
tldr/pages/linux/readelf.md
jimmychang851129 5a4a939d97
readelf: add example (#12664)
* readelf: add --section-headers command sample

1. Add section-headers command sample as it is commonly used in readelf.

2. Make the command description more precise and concise for --file-header command.
2024-04-23 14:29:42 +05:30

588 B

readelf

Display 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 ELF header information:

readelf --file-header {{path/to/binary}}

  • Display ELF section header information:

readelf --section-headers {{path/to/binary}}