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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store