Set the Environment

export, env, source — configure environment variables for an application.

A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: The app server refuses to start. The startup log says "Required environment variables not set."

Your tasks:

  1. Export the following variables in the current shell:
  1. Add export APP_ENV=production permanently to ~/.bashrc
  2. Source ~/.bashrc to apply changes
  3. Write the value of $APP_ENV to /tmp/env_answer.txt

Commands to learn: export, env, printenv, source, echo $VAR

Run check when done.