Below is a list of the most frequently used configuration variables. You can get a complete list by issuing
e command without arguments. For example, to see all variables defined in the "cfg" namespace, issue
e cfg. (mind the ending dot). You can get help on any eval configuration variable by using
e?? command to get help on all the evaluable configuration variables of radare2. As long as the output of this command is pretty large you can combine it with the internal grep
~ to filter for what you are looking for:
The Visual mode has an eval browser that is accessible through the
Defines the target CPU architecture used for disassembling (
pD commands) and code analysis (
a command). You can find the list of possible values by looking at the result of
e asm.arch=? or
It is quite simple to add new architectures for disassembling and analyzing code. There is an interface for that. For x86, it is used to attach a number of third-party disassembler engines, including GNU binutils, Udis86 and a few handmade ones.
Determines width in bits of registers for the current architecture. Supported values: 8, 16, 32, 64. Note that not all target architectures support all combinations for asm.bits.
Changes syntax flavor for disassembler between Intel and AT&T. At the moment, this setting affects Udis86 disassembler for Intel 32/Intel 64 targets only. Supported values are
A boolean value to choose a string disassembly engine. "False" indicates a native one, defined by the current architecture, "true" activates a pseudocode strings format; for example, it will show
eax=ebx instead of a
mov eax, ebx.
Selects a target operating system of currently loaded binary. Usually, OS is automatically detected by
rabin -rI. Yet,
asm.os can be used to switch to a different syscall table employed by another OS.
If defined to "true", disassembler view will have flags column.
If set to "true", draw lines at the left of the disassemble output (
pD commands) to graphically represent control flow changes (jumps and calls) that are targeted inside current block. Also, see
When defined as "true", the disassembly view will also draw control flow lines that go outside of the block.
A boolean value which changes the direction of control flow analysis. If set to "false", it is done from top to bottom of a block; otherwise, it goes from bottom to top. The "false" setting seems to be a better choice for improved readability and is the default one.
Boolean value which controls the visibility of offsets for individual disassembled instructions.
A boolean value that controls displaying of tracing information (sequence number and counter) at the left of each opcode. It is used to assist with programs trace analysis.
A boolean value used to show or hide displaying of raw bytes of instructions.
Change endianness. "true" means big-endian, "false" is for little-endian. "file.id" and "file.flag" both to be true.
If this variable is enabled, help messages will be displayed along with command names in tab completion for commands.
This variable specifies the mode for colorized screen output: "false" (or 0) means no colors, "true" (or 1) means 16-colors mode, 2 means 256-colors mode, 3 means 16 million-colors mode. If your favorite theme looks weird, try to bump this up.
This variable accepts a full-featured expression or a pointer/flag (eg. eip). If set, radare will set seek position to its value on startup.
Enables or disables "fortune" messages displayed at each radare start.
Fortunes are classified by type. This variable determines which types are allowed for displaying when
true, so they can be fine-tuned on what's appropriate for the intended audience. Current types are