How to get an environment variable in Bash?
Environment variables store configuration settings for your shell and applications. They’re essential for configuring containers, serverless functions, application runtime behavior, and system services. Retrieving an environment variable Use the dollar sign prefix to access a variable: echo $VARIABLE_NAME This prints the variable’s value to stdout. If the variable doesn’t exist, it prints an empty line….