0

Can anyone explain the difference between

$ gedit ~/.bashrc

and

$sudo -H gedit /etc/environment

in setting environment variables?

1

1 Answer 1

1

Long story short:

  • If environment variable should be used by every user -> /etc/environment

  • If variable is just for one user -> ~/. profile or ~/.bashrc

Not the answer you're looking for? Browse other questions tagged .