Skip to content

Commit

Permalink
Update listing for r2 -H
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Mar 6, 2024
1 parent 818b9e7 commit b2e0106
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
1 change: 1 addition & 0 deletions src/analysis/calling_conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ It is used also as a guide for basic function prototype and type propagation.
amd64
ms
```

* To display function prototype of standard library functions you have `afcf` command

```
Expand Down
37 changes: 21 additions & 16 deletions src/configuration/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ Use `r2 -H` to list all the environment variables that matter to know where it w
be looking for files. Those paths depend on the way (and operating system) you have
built r2 for.

```
R2_PREFIX=/usr
MAGICPATH=/usr/share/radare2/2.8.0-git/magic
PREFIX=/usr
INCDIR=/usr/include/libr
LIBDIR=/usr/lib64
LIBEXT=so
RCONFIGHOME=/home/user/.config/radare2
RDATAHOME=/home/user/.local/share/radare2
RCACHEHOME=/home/user/.cache/radare2
LIBR_PLUGINS=/usr/lib/radare2/2.8.0-git
USER_PLUGINS=/home/user/.local/share/radare2/plugins
USER_ZIGNS=/home/user/.local/share/radare2/zigns
```sh
$ r2 -H
R2_VERSION=5.8.9
R2_PREFIX=/usr/local
R2_MAGICPATH=/usr/local/share/radare2/5.8.9/magic
R2_INCDIR=/usr/local/include/libr
R2_BINDIR=/usr/local/bin
R2_LIBDIR=/usr/local/lib
R2_LIBEXT=dylib
R2_RCFILE=/Users/pancake/.radare2rc
R2_RDATAHOME=/Users/pancake/.local/share/radare2
R2_HISTORY=/Users/pancake/.cache/radare2/history
R2_CONFIG_HOME=/Users/pancake/.config//radare2
R2_CACHE_HOME=/Users/pancake/.cache/radare2
R2_LIBR_PLUGINS=/usr/local/lib/radare2/5.8.9
R2_USER_PLUGINS=/Users/pancake/.local/share/radare2/plugins
R2_ZIGNS_HOME=/Users/pancake/.local/share//radare2/zigns
```

## RC Files
Expand All @@ -25,7 +29,7 @@ RC files are r2 scripts that are loaded at startup time. Those files must be in

### System

radare2 will first try to load /usr/share/radare2/radare2rc
radare2 will first try to load `/usr/share/radare2/radare2rc`

### Your Home

Expand All @@ -35,7 +39,8 @@ Each user in the system can have its own r2 scripts to run on startup to select
* ~/.config/radare2/radare2rc
* ~/.config/radare2/radare2rc.d/

The path to this file can be also specified with the `R2_RCFILE` environment variable.

### Target file

If you want to run a script everytime you open a file, just create a file with the same name of the file
but appending `.r2` to it.
If you want to run a script everytime you open a file, just create a file with the same name of the file but appending `.r2` to it.
2 changes: 1 addition & 1 deletion src/first_steps/history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## History

In 2006, Sergi Àlvarez (aka pancake) was working as a forensic analyst. Since he wasn't allowed to use the company software for his personal needs, he decided to write a small tool-a hexadecimal editor-with very basic characteristics:
In 2006, Sergi Àlvarez (aka pancake) is the author of radare and radare2, the project started when he was working as a forensic analyst. Since he wasn't allowed to use the company software for his personal needs, he decided to write a small tool-a hexadecimal editor-with very basic characteristics:

* be extremely portable (unix friendly, command line, c, small)
* open disk devices, this is using 64bit offsets
Expand Down
4 changes: 1 addition & 3 deletions src/intro.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Introduction

This book is an updated version (started by maijin) of the original
radare1 book (written by pancake). Which is actively maintained and
updated by many contributors over the Internet.
This book is an updated version (started by maijin) of the original radare1 book (written by pancake). Which is actively maintained and updated by many contributors over the Internet.

Check the Github site to add new contents or fix typos:

Expand Down

0 comments on commit b2e0106

Please sign in to comment.