Skip to content
Cheat Sheet

Cheat Sheet

A survival kit for the most common Frida operations. Based on the practical guide by F.-X. Gallat (IBS Grenoble).

Load, inspect, plot

Command Example Effect
fl fl sample_280K.y08 Load file from disk
df df List all workspaces
dz dz Show z-values and x-ranges
p p 0,2-6 Plot spectra 0, 2–6 of active workspace
a a 0-6 Add spectra to current plot
gxl, gyl gyl Toggle log scale
ga ga Auto-scale axes

Manipulate data

Command Example Effect
oy oy atan(y/100) Transform y values
ox ox x+x[10] Transform x values
mr mr abs(x)<6 Retain points where condition is true
md md abs(x)>10 Delete points where condition is true
mpa mpa ::4 Bin 4 energy channels into 1
mpaf mpaf 5 Bin by fixed factor (equidistant output)

Cross-workspace arithmetic

Expression Context Effect
oy y-y[4] 0-3 > Subtract workspace 4 point-by-point
oy y/y[5,0,j] 0-4 > Divide by per-spectrum scalar in workspace 5

The index notation y[k,j,i] references any value across workspaces — see Expressions for details.

Fit a curve

Command Example Effect
cc cc p0 + p1*exp(-(t-p2)^2) Create fit curve
op0, op1, … op0 1 Set initial parameter value
cv cv 6 Set resolution workspace for convolution
cf / cfs cf Run fit (cfs: allow slow convolution)
cx / cu cx 2 Fix / unfix parameter p2
cp cp Print all parameter values
ci ci 1 / ci * Extract parameter(s) into a new workspace

Save and quit

Command Effect
fs / fso Save to disk / overwrite existing
fc Copy active workspace
quit Exit Frida