Environment variable empty on echo

A.Jac

I added an environment variable to /etc/environment like this:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
ENVIRONMENT_TYPE="test"

But it show empty when i try to "echo $ENVIRONMENT_TYPE", echoing out the PATH variables displays correctly. Why is my new variable not showing?

shahin

after adding the values just execute:

source /etc/environment

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Docker echo environment variable

echo gammu environment variable

echo an environment variable in bash

echo return an empty variable $

Bitbucket pipelines: echo environment variable

echo environment variable with docker run

echo a JSON environment variable in a makefile

Same echo whether variable is empty or not

Unsetting environment variable with an empty name

MissingEndParenthesisInMethodCall - checking if an environment variable is empty

How to Print environment variable in execle() using echo?

bash echo environment variable containing escaped characters

Take cmd line parameter and echo it if it is an environment variable

Cannot echo environment variable with space after storing in variable

Why is my GID environment variable empty?

Why "CC=xxx echo $CC" can not change the environment variable

Difference between environment variable value for "ECHO %foo%" versus "%foo%"

DOS echo %variable% "Echo is ON"

Different behavior of unset vs. empty LESS environment variable?

SpringBoot project, Environment Variable in application.yml always empty

how to set php variable to another variable when first one is empty then echo

Unable to use an environment variable in command prompt, even though I can print it's value using echo command

"echo %JAVA_HOME%" returns wrong path even though System JAVA_HOME Environment variable set

Echo Variable inside of echo statement

Why does echo $VARIABLE, within a /bin/bash -c "..." section of a dockerfile run instruction, return empty on docker build?

How to print / echo environment variables?

Can't echo environment variables

How to echo environment variables in Docker

PHP Table echo empty td