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

SHELL

122     Type '?' for help
123

VISUAL

125     To enter visual mode use the 'V' command. Then press '?' for help
126

DEBUGGER

128     In r2 the debugger commands are implemented under the 'd' command. Type
129     'd?' for help
130

ENVIRONMENT

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

SEE ALSO

140     rahash2(1), rafind2(1), rabin2(1), radiff2(1), rasm2(1), rax2(1),
141     ragg2(1), rarun2(1),
142

AUTHORS

144     pancake <pancake@nopcode.org>
145
146                                 Aug 24, 2017
Impressum