Introduction
Sometimes you want to make a variable available to other programs or scripts you run from your shell. The export command lets you do this by marking variables so they can be used by child processes.
When you want a script to access a variable you set in your current shell session.
When you need to set environment variables like PATH or HOME for programs you start.
When you want to temporarily change a variable for a program you launch without changing it globally.
When you want to share configuration values between multiple commands run from the same shell.
When you want to make sure a variable is available to all scripts called from your shell.