In Windows, you can use the following window to set the Environment Variables that each process will have once executed:Can you do the same thing in Linux?
Can you set the Environment Variables that each process will have once executed in Linux?
linux;environment variables
The way to set environment variables for user applications through the user interface works somewhat differently on Windows and on Linux. The Windows interface that you're using changes both the values of variables in the current session, and the values for future sessions.On Linux, the traditional ways to set environment variables work at login time. There are several ways to do it, but they involve changing files that are only read at login time. So they don't apply to the current session. The main files you can use for this are .profile and .pam_environment, both in your home directory; see What's the best distro/shell-agnostic way to set environment variables? for a more detailed discussion.To set environment variables for the current session, you have to set them in the process that launches the applications: the GUI shell. Under Windows that's easy because there's no real choice of a GUI shell. (It's technically possible to replace the default one but very few users do it.) Under Linux, there are hundreds of possible GUI shells  the GUI shell is usually the window manager, sometimes a separate component of a desktop environment. There's no standard way to set environment variables in the window manager or desktop environment: each WM/DE has its own way (and some have none, unfortunately).A WM/DE agnostic of changing environment variables is to edit ~/.profile. A basic syntax (there are other ways) isexport MYVAR='the value of the variable'Then launch a terminal (which runs a shell), and in that shell type. ~/.profileThis loads the new values of the environment variables from .profile. After this, if you run a program from that shell, the new variables will apply to that program. But if you run a program directly from a GUI menu, the program will inherit the environment of the program that provides GUI menu, so if you want to change this, you have to use whatever way that program provides (or a companion program as part of the desktop environment).