How to create a permanent environment variable for Linux in PowerShell

Viewed 1528

How to create, set and update a permanent environment variable for Linux in PowerShell Core. The following solution works properly, but only when I run the script on Windows:

[Environment]::SetEnvironmentVariable("Variable", "Value", "Machine")
0 Answers
Related