RC-ENVIRON(8) System Manager's Manual (smm) RC-ENVIRON(8)

# [NAME](#NAME)

`rc-environ` — Print the stored enviroment variables for a given service

# [SYNOPSIS](#SYNOPSIS)

`rc-environ` \[-s &lt;service&gt;] \[-r &lt;runlevel&gt;] \[-en0]

# [DESCRIPTION](#DESCRIPTION)

`rc-environ` prints the stored environment variables for a service.

The options are as follows:

[`-e`](#e), `--export`

Prepend "export" to printed variables

[`-n`](#n), `--no-escape`

Do not perform shell sensitive escape on variable values

[`-0`](#0), `--null`

End each output line with NUL, not newline

[`-s`](#s), `--service` `<arg>`

Add service to the list of environments to print

[`-r`](#r), `--runlevel` `<arg>`

Add services in runlevel to the list of environments to print

[`-h`](#h), `--help`

Display this help output

[`-C`](#C), `--nocolor`

Disable color output

[`-V,`](#V,) `--version`

Display software version

[`-v`](#v), `--verbose`

Run verbosely

[`-q`](#q), `--quiet`

Run quietly (repeat to suppress errors)

[`-U`](#U), `--user`

Run in user mode

# [AUTHORS](#AUTHORS)

Matthias Geiger &lt;werdahias@debian.org&gt;  
navi &lt;navi@vlhl.dev&gt;

September 18, 2026 OpenRC

---

Document: rc-environ(8) from openrc 0.64.1-r4 (Chainguard OS)
Source: https://github.com/OpenRC/openrc
