1RADARE2(1)                BSD General Commands Manual               RADARE2(1)
2

NAME

4     radare2 — Advanced commandline hexadecimal editor, disassembler and
5     debugger
6

SYNOPSIS

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

DESCRIPTION

13     radare2 is a commandline 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
38                 binary. 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     -q          Quiet mode (no prompt) and quit after running the commands
76                 specified with -i or -c
77
78     -qq         Quit before showing the prompt. Right after all the -e -c and
79                 -i arguments are evaluated.
80
81     -Q          Same as q, but exiting without freeing RCore, this produces
82                 leaks at exit time, but saves some precious ms to run the
83                 testsuite in fast mode.
84
85     -p prj      Set project file
86
87     -P file     Apply rapatch file and quit (see doc/rapatch.md for more
88                 details)
89
90     -r rarun2   Specify dbg.profile rarun2 profile to use when spawning a
91                 program for debugging
92
93     -R rarun2-directive
94                 Specify custom rarun2 directives without having to create a
95                 rarun2 profile
96
97     -s addr     Start seeking at this address
98
99     -S          Enable sandboxed mode (same as -e cfg.sandbox=true)
100
101     -t          Get binary information using a thread
102
103     -T          Avoid computing the file hashes
104
105     -u          Set bin.filter=false to load rbin info without filtering
106                 names
107
108     -v          Show version information and exit (Use -qv to get just the
109                 version number)
110
111     -V          Show radare2 library versions
112
113     -w          Open in write mode
114
115     -h          Show help message
116
117     -H          Show files and environment help
118
119     -x          Open the file map without executable permissions
120
121     -X          Same as -e bin.usextr=false, do not use extract plugins, use‐
122                 ful for dyldcache
123

SHELL

125     Type '?' for help
126

VISUAL

128     To enter visual mode use the 'V' command. Then press '?' for help
129

DEBUGGER

131     In r2 the debugger commands are implemented under the 'd' command. Type
132     'd?' for help
133

ENVIRONMENT

135      RHOMEDIR     ~/.config/radare2
136      RCFILE       ~/.radare2rc (user preferences, batch script)
137      R2_MAGICPATH /usr/lib/radare2/0.10.0-git/magic
138      R_DEBUG      if defined, show error messages and crash signal
139      VAPIDIR      path to extra vapi directory FILE path to the current work‐
140     ing file.
141

SEE ALSO

143     rahash2(1), rafind2(1), rabin2(1), radiff2(1), rasm2(1), rax2(1),
144     ragg2(1), rarun2(1),
145

AUTHORS

147     pancake <pancake@nopcode.org>
148
149                                  Jul 2, 2019
Impressum