Linux utils

back to main index

  • brk, sbrk - change the program break (allocate more memory to the process)
    • also ANONYMOUS mmap can be used to allocate memory to process
  • objdump - dump information about object files
    • objdump <program> -d - dissassembly sections
  • readelf - extract information from ELF object files
    • readelf <program> -l - show headers
    • readelf <program> -S - show sections
  • ldd - show dynamic libraries dependencies
  • mprotect - changes memory permissions/protections
  • nm - list symbols in object file

Misc

  • file <file_path> - determine type of file
  • less <text_file_path> - view text files
  • size <program> - view section sizes of binary files
Built with LogoFlowershow