# radare2(1) ## print ```markdown pd [@ ] # print disassembly for instructions # with optional temporary seek to ``` ## flags ```markdown fs # list flag-spaces fs # select flag-space f # print flags of selected flag-space ``` ## help ```markdown ?*~ # '?*' list all commands and '~' grep for ?*~... # '..' less mode /'...' interactive search ``` ## relocation ```markdown > r2 -B # open mapped to addr oob # reopen current file at ``` # Examples ## Patch file (alter bytes) ```markdown > r2 [-w] oo+ # re-open for write if -w was not passed s # seek to position wv # write 4 byte (dword) ``` ## Assemble / Disassmble (rasm2) ```markdown rasm2 -L # list supported archs > rasm2 -a x86 'mov eax, 0xdeadbeef' b8efbeadde > rasm2 -a x86 -d "b8efbeadde" mov eax, 0xdeadbeef ```