A.Jac
A.Jac

Reputation: 1673

Environment variable empty on echo

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?

Upvotes: 2

Views: 5565

Answers (1)

shahin
shahin

Reputation: 3655

after adding the values just execute:

source /etc/environment

Upvotes: 1

Related Questions