RZ\_AR(1) General Commands Manual RZ\_AR(1)

# [NAME](#NAME)

`rz-ar` — List and extract members from .a and .lib archives

# [SYNOPSIS](#SYNOPSIS)

`rz-ar` \[`-hlqv`] \[`-o` `outdir`] `archive` \[`member ...`]

# [DESCRIPTION](#DESCRIPTION)

This command is part of the Rizin project.

`rz-ar` lists or extracts archive members from .a and .lib files. It creates missing directories in the output path automatically.

When no member filters are provided, all members are processed. When one or more `member` arguments are provided, only matching members are processed.

The options are:

[`-h`](#h)

Show usage help message.

[`-l`](#l)

List matching members only.

[`-o`](#o) `outdir`

Set extraction output directory (default: current directory).

[`-q`](#q)

Quiet mode.

[`-v`](#v)

Show version information.

# [EXIT STATUS](#EXIT_STATUS)

0

Operation completed successfully.

1

Invalid arguments, open failure, no matches, or extraction failures.

# [EXAMPLES](#EXAMPLES)

List all members:

```
rz-ar -l libfoo.a
```

Extract all members into current directory:

```
rz-ar libfoo.a
```

Extract selected members into output directory:

```
rz-ar -o out libfoo.a foo.o bar.o
```

# [SEE ALSO](#SEE_ALSO)

[rizin(1)](/man/os/rizin/rizin.1), [rz-bin(1)](/man/os/rizin/rz-bin.1), [rz-hash(1)](/man/os/rizin/rz-hash.1)

March 14, 2026 Linux 4.19.0-gvisor

---

Document: rz-ar(1) from rizin 0.9.1-r1 (Chainguard OS)
Source: https://github.com/rizinorg/rizin
