Options
Tips
- Use the back tick ` to wrap a command to use as the input to another command. Example s axt `str.some~[1]` . This command will take the address xref to of somestr and seek to that address.
- Use
?*?
to see every command available in r2
Options
_
print last output
*
Pointer read/write data/values (see ?v, wx, wv)
.
Define macro or load r2, cparse or rlang file
=
Send/Listen for Remote Commands (rap://, http://,
/
Search for bytes, regexps, patterns, ..
\
Generally used for plugin commands
!
Run given command as in system(3)
#
Hashbang to run an rlang script
?
Help or evaluate math expression
@
Misc help for '@' (seek), '~' (grep) (see ~??)
?$?
Show available '$' variables and aliases
b
Display or change the block size
c
Compare block with given data
C
Code metadata (comments, format, hints, ..)
e
List/get/set config evaluable vars
g
Generate shellcodes with r_egg
i
Get info about opened file from r_bin
k
Run sdb-query. see k? for help, 'k *', 'k ' ...
l
list files and directories
L
list, unload load r2 plugins
o
Open file at optional address
p
Print current block with format and length
P
Project management utilities
q
Quit program with a return value
s
Seek to address (also for '0x', '0x1' == 's 0x1')
S
Io section manipulation information
t
Types, noreturn, signatures, C parser and more
x
Alias for 'px' (print hexadecimal)