Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

How to add to /etc/environment?

$
0
0

I use a mac at work, which has /etc/paths to add paths, with the syntax:

/usr/foo

/usr/bar

Using wsl with ubuntu-18.04-ls, I wanted to add "/home/linuxbrew/.linuxbrew/bin" to etc/environment, because I read that is the equivalent of /etc/paths. Changed the line from: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

to

PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",restarted, typed echo $PATH but it would still print the old line. Am I in the wrong spot for setting paths globally or did I do something wrong?


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>