JAEN

Linux

env / export

SafeEnvironment variables

env | grep PATH

Lists and sets env vars. 'Works by hand, fails in cron' almost always means env differences — compare with env.

Examples

  • env -i PATH=/usr/bin /opt/job.shReproduce with a cron-like bare env

Syntax

env / export VAR=value / printenv [VAR]

Before you run it

Read/session-only changes.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store