1

I tried below code in multiple time but can not get environment variable panel in Ubuntu 19.04.x

sudo -H gedit /etc/environment.

If anyone know how to do that, please help.

Soumen Mukherjee
  • 2,953
  • 3
  • 22
  • 34
Elavarasan r
  • 1,055
  • 2
  • 12
  • 22

1 Answers1

0

As the doc mention, you should modify/add environment variables into the /etc/profile.d/*.sh (global envs) files or .profile (session envs) file.

Simply do the following as an example:

export PATH=$PATH:$JAVA_HOME/bin
oktapodia
  • 1,695
  • 1
  • 15
  • 31