Skip to main content
improved formatting
Source Link
Bernhard
  • 12.6k
  • 5
  • 62
  • 70

Use /etc/environment file for setting the environment variables. AddThen add the following line inside the /etc/environment/etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions. To test the variable output first refresh the environment variable using command

source /etc/environment

and run echo $ABC.

Use /etc/environment file for setting the environment variables. Add following line inside the /etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions. To test the variable output first refresh the environment variable using command

source /etc/environment

and run echo $ABC.

Use /etc/environment file for setting the environment variables. Then add the following line inside the /etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions. To test the variable output first refresh the environment variable using command

source /etc/environment

and run echo $ABC.

Use /etc/environment/etc/environment file for setting the environment variables.

  Add following line inside the /etc/environment file.

ABC="123"

ABC="123"

Now the ABCABC variable will be accessible from all the user sessions.

  To test the variable output first refresh the environment variable using source /etc/environment command

source /etc/environment

and run echo $ABC commandecho $ABC.

Use /etc/environment file for setting the environment variables.

  Add following line inside the /etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions.

  To test the variable output first refresh the environment variable using source /etc/environment command and run echo $ABC command.

Use /etc/environment file for setting the environment variables. Add following line inside the /etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions. To test the variable output first refresh the environment variable using command

source /etc/environment

and run echo $ABC.

Source Link
Hokam
  • 721
  • 5
  • 3

Use /etc/environment file for setting the environment variables.

Add following line inside the /etc/environment file.

ABC="123"

Now the ABC variable will be accessible from all the user sessions.

To test the variable output first refresh the environment variable using source /etc/environment command and run echo $ABC command.