/usr/share/doc/radare-doc/flags is in radare-doc 1:1.5.2-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | Flags tutorial
==============
Flags are used for bookmarking data with radare.
Each bookmark store this information:
- name
- data
- size
- offset
- print format
So, the possible actions are:
> seek 0x100
> flag my_first_flag
flag 'my_first_flag' at 0x0000000000000100 and size 512
This is your first flag! :D
You can list all your flags using the 'flag' command
without any argument.
> flag
000 0x0000000000000100 512 my_first_flag x 78 94 05 08 2c 00 00 00 00..
As you can see, it stores the print format and shows you the
contents of the block.
It's useful to know how to use the '*' argument, that allows
you to print all flags in radare script format.
> flag *
s 0x100
b 0x200
f my_first_flag
You can redirect this output to a file for storing some flags,
edit them, remove all current flags and import them:
> flag * > /tmp/flags
> !vim /tmp/flags
> flag -*
> . /tmp/flags
I've used the '-' prefix for ordening flag to remove a flag
named '*', this is an alias for all defined flags. But you
can type the flag name instead:
> flag -my_first_flag
|