Project

General

Profile

Actions

System\Environment Variables

To set system\environment variable in your OS, do the following (substitute NAME and VALUE by the name and value of your environment variable respectively):

Windows

  1. Open the System Properties window.
  2. Switch to the Advanced tab.
  3. Click on Environment Variables.
  4. Click New... under System Variables.
  5. In the New System Variable dialog specify variable name as NAME and variable value as VALUE.
  6. Click OK on all open windows.
  7. Reopen the command prompt window.

Linux

Add the command below to the ~/.bash_profile or ~/.bashrc file (Linux):

export NAME=VALUE

Changes will be applied after restarting the command-line terminal or reboot. You can also execute the command in your command-line terminal to make temporary changes.

Updated by Sergey Smolov over 4 years ago · 1 revisions