$ Alias
Usage: $alias[=cmd] [args...]Alias commands
$list all defined aliases-
🚀
$can be used as variables. asciinema
-
$*same as above, but using r2 commands-
Use
$*to see values of all user defined variables or aliases.
-
$dis='af;pdf'create command - analyze to show function$dis
$test=#!pipe node /tmp/test.js create command - rlangpipe script$dis=undefine alias$disexecute the previously defined alias-
$dis?show commands aliased by 'analyze'-
Example
$somevar?will show the value assigned to somevar variable
-
-
$$here (current virtual seek) $$$current non-temporary virtual seek$?last comparison value$alias=valuealias commands (simple macros)$bblock size$Bbase address (aligned lowest map address)$fjump fail address (e.g. jz 0x10 => next instruction)$flflag length (size) at current address (fla; pD $l @ entry0)$Fcurrent function size$FBbegin of function$Fbaddress of the current basic block$Fssize of the current basic block$FEend of function$FSfunction size$Fjfunction jump destination$Fffunction false destination$FIfunction instructions$c,$rget width and height of terminal$Cnget nth call of function$Dnget nth data reference in function$Dcurrent debug map base address ?v $D @ rsp$DDcurrent debug map size$e1 if end of block, else 0$jjump address (e.g. jmp 0x10, jz 0x10 => 0x10)$Jaget nth jump of function$Xnget nth xref of function$lopcode length$mopcode memory reference (e.g. mov eax,[0x10] => 0x10)$Mmap address (lowest map address)$MMmap size (lowest map address)$ohere (current disk io offset)$pgetpid()$Ppid of children (only in debug)$sfile size$Ssection offset$SSsection size$vopcode immediate value (e.g. lui a0,0x8010 => 0x8010)$wget word size, 4 if asm.bits=32, 8 if 64, ...${ev}get value of eval config variable$rget console height$r{reg}get value of named register$k{kv}get value of an sdb query value$s{flag}get size of flag$e{flag}end of flag (flag->offset + flag->size)RNum$variables usable in math expressions