Skip to content

Instantly share code, notes, and snippets.

View harin-ramesh's full-sized avatar
🛠️

Harin harin-ramesh

🛠️
View GitHub Profile
@harin-ramesh
harin-ramesh / clean-up-arch-linux.md
Created October 25, 2024 13:34 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
gcc -o processor prgram_one.c
gcc -o writer prgram_two.c
gcc -o pipe pipe.c

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

ELF

ELF Header

The first portion of any ELF file is the ELF header. This generally provides offsets to other headers (program headers and section headers) within an ELF.

typedef struct {
  unsigned char e_ident[EI_NIDENT];
 uint16_t e_type;