1RADARE2(1) BSD General Commands Manual RADARE2(1)
2
4 radare2 — Advanced command-line hexadecimal editor, disassembler and de‐
5 bugger
6
8 radare2 [-a arch] [-b bits] [-B baddr] [-c cmd] [-e k=v] [-i file]
9 [-I prefile] [-k kernel] [-m addr] [-p project] [-P patch]
10 [-r rarun2] [-R rr2rule] [-s addr] [-0AdDwntLquvVxX] -|--|=|file
11
13 radare2 is a command-line hexadecimal editor.
14
15 "r2" is the alias program name for radare2.
16
17 This manpage is not updated yet. Feel free to contribute.
18
19 The options are:
20
21 -- Open radare2 on an empty file
22
23 - Equivalent of 'r2 malloc://512'
24
25 -0 Print \x00 after initialization and after every command exe‐
26 cuted
27
28 -2 Close stderr before starting RCore
29
30 -a arch force asm.arch (x86, ppc, arm, mips, bf, java, ...)
31
32 -A run 'aaa' command before prompt or patch to analyze all ref‐
33 erenced code. Use -AA to run aaaa
34
35 -b bits force asm.bits (16, 32, 64)
36
37 -B baddr Specify the base address to be used when loading a new bi‐
38 nary. See 'e?bin.baddr'
39
40 -c cmd Execute the given command before giving prompt
41
42 -d Start in debugger mode
43
44 -D dbg.backend
45 Enable debug mode. Set cfg.debug=true
46
47 -e k=v Set configuration eval variable key=value. For example -e
48 scr.color=false
49
50 -f Blocksize = file size
51
52 -i file Run script file. After the file is loaded
53
54 -I file Run script file. Before the file is loaded
55
56 -k kernel Select kernel (asm.os) for syscall resolution
57
58 -l plugfile
59 Load given plugin file
60
61 -L List supported IO plugins.
62
63 -m addr map file at given address
64
65 -M Disable demangling
66
67 -n Do not perform any analysis (r_bin). Just load the raw file
68
69 -nn Only load the rbin structures (elf, mach0, ...)
70
71 -N Do not load user settings/projects from ~/.radare2rc, ~/.con‐
72 fig/radare2/radare2rc and the scripts inside .../radare2rc.d/
73 directory.
74
75 -NN Same as -N but also disables the automatic loading of plugins
76 on startup time
77
78 -q Quiet mode (no prompt) and quit after running the commands
79 specified with -i or -c
80
81 -qq Quit before showing the prompt. Right after all the -e -c and
82 -i arguments are evaluated.
83
84 -Q Same as q, but exiting without freeing RCore, this produces
85 leaks at exit time, but saves some precious ms to run the
86 testsuite in fast mode.
87
88 -p prj Set project file
89
90 -P file Apply rapatch file and quit (see doc/rapatch.md for more de‐
91 tails)
92
93 -r rarun2 Specify dbg.profile rarun2 profile to use when spawning a
94 program for debugging
95
96 -R rarun2-directive
97 Specify custom rarun2 directives without having to create a
98 rarun2 profile
99
100 -s addr Start seeking at this address
101
102 -S Enable sandboxed mode (same as -e cfg.sandbox=true)
103
104 -t Get binary information using a thread
105
106 -T Avoid computing the file hashes
107
108 -u Set bin.filter=false to load rbin info without filtering
109 names
110
111 -v Show version information and exit (Use -qv to get just the
112 version number)
113
114 -V Show radare2 library versions
115
116 -w Open in write mode
117
118 -h Show help message
119
120 -H Show files and environment help
121
122 -x Open the file map without executable permissions
123
124 -X Same as -e bin.usextr=false, do not use extract plugins, use‐
125 ful for dyldcache
126
128 Type '?' for help
129
131 To enter visual mode use the 'V' command. Then press '?' for help
132
134 In r2 the debugger commands are implemented under the 'd' command. Type
135 'd?' for help
136
138 R2_CFG_NEWSHELL sets cfg.newshell=true
139 R2_IGNVER load plugins ignoring the specified version. (be careful)
140 R2_DEBUG if defined, show error messages and crash signal
141 R2_DEBUG_ASSERT=1 set a breakpoint when hitting an assert
142 R2_MAGICPATH /Users/pancake/.lo‐
143 cal/share/radare2/share/radare2/4.5.0-git/magic
144 R2_NOPLUGINS do not load r2 shared plugins
145 R2_RCFILE ~/.radare2rc (user preferences, batch script)
146 R2_RDATAHOME /usr/local FILE path to the current working file.
147
149 r2r(1), rahash2(1), rafind2(1), rabin2(1), radiff2(1), rasm2(1), rax2(1),
150 ravc2(1), ragg2(1), rarun2(1),
151
153 pancake <pancake@nopcode.org>
154
155 May 20, 2021