OS Manuals

/usr/bin/rz-diff

UNIX-like reverse engineering framework and command-line toolset

From rizin 0.9.1-r2 (os), captured 2026-11-05 by running rz-diff -help (exit 0). permalink

Usage: rz-diff [options] <file0> <file1>
 -a arch      Specify architecture plugin to use (x86, arm, ..)
 -b bits      Specify register size for arch (16 (thumb), 32, 64, ..)
 -d myers     Compute edit distance using Eugene W. Myers' O(ND) algorithm (no substitution)
 -d leven     Compute edit distance using Levenshtein O(N^2) algorithm (with substitution)
 -d lcs-roll  Compute edit distance using Myers+FastCDC with chunk size 128 (-0 to change chunk size)
 -d ssdeep    Compute edit distance using Context triggered piecewise hashing comparison
 -i           Use command line arguments instead of files (only for -d)
 -H           Hexadecimal visual mode
 -h           Show this help
 -j           JSON output
 -q           Quiet output
 -v           Show version information
 -V           Be more verbose (stderr output)
 -K theme     Set a give color theme (see rizin 'eco' command)
 -e k=v       Set an evaluable config variable
 -A           Compare virtual and physical addresses
 -B           Run 'aaa' when loading the bin
 -C           Disable colors
 -T           Show timestamp information
 -S WxH       Set the width and height of the terminal for visual mode
 -0 cmd       Input for file0 when option -t 'commands' is given.
              The same value will be set for file1, if -1 is not set.
 -1 cmd       Input for file1 when option -t 'commands' is given.
 -t bytes     Compare raw bytes in the files (only for small files)
 -t lines     Compare text files
 -t functions Compare functions found in the files
              optional -0 <fcn name|offset> to compare only one function
 -t classes   Compare classes found in the files
 -t command   Compare command output returned when executed in both files
              requires -0 <cmd> and -1 <cmd> is optional
 -t entries   Compare entries found in the files
 -t fields    Compare fields found in the files
 -t graphs    Compare 2 functions and outputs in graphviz/dot format
              requires -0 <fcn name|offset> and -1 <fcn name|offset> is optional
 -t imports   Compare imports found in the files
 -t libraries Compare libraries found in the files
 -t sections  Compare sections found in the files
 -t strings   Compare strings found in the files
 -t symbols   Compare symbols found in the files
Palette colors can be changed by adding the following lines inside the $HOME/.rizinrc file
  ec diff.unknown blue  | offset color
  ec diff.match   green | match color
  ec diff.unmatch red   | mismatch color
Environment variables
  RZ_COLOR              | enables/disables colors support
Options (20)
OptionDescriptionSource
-a archSpecify the architecture plugin to use for analysis (e.g., x86, arm)help + man
-b bitsSpecify the register size for the chosen architecture (e.g., 16, 32, 64)help + man
-d myersCompute the edit distance between files using the chosen algorithm:help + man
-iUse command line arguments instead of files (only for -d)help + man
-HEnable hexadecimal visual mode for comparing files in hexadecimal formathelp + man
-hDisplay the help messagehelp + man
-jOutput the comparison results in JSON formathelp + man
-qGenerate quiet output with minimal informationhelp + man
-vbe more verbose (stderr output)help + man
-VShow version information for rz-diffhelp + man
-K themeSet a give color theme (see rizin 'eco' command)help
-e k=vSet an evaluable config variablehelp + man
-ACompare virtual addresses from file0 with physical addresses in file1help + man
-BRun 'aaa' when loading the binaryhelp + man
-CDisable the use of colors in the outputhelp + man
-TShow timestamp information in the outputhelp + man
-S WxHSet the width and height of the terminal for visual modehelp + man
-0 cmdInput for file0 when option -t 'commands' is given.help + man
-1 cmdInput for file1 when option -t 'commands' is given.help + man
-t bytesCompute the difference between two files based on the specified type:help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.