Environment Variables: export and env

Programs you start can't see your shell variables, only environment variables, so export shares a variable with them, env and printenv show what they'll see, and NAME=value in front of a command sets one for that command alone.

Updated

Cheat sheet for the lesson Environment Variables: export and env: Programs you start can't see your shell variables, only environment variables, so export shares a variable with them, env and printenv show what they'll see, and NAME=value in front of a command sets one for that command alone.
Category
Bash
Level
Apprentice
Tags
env-and-printenv, environment-variable, export, linux, unix