I need to have a variable $FOO
on the system that contains a string all users could use, but I have no idea how to create one.
The Upstart job is obviously not a solution as from this thread – Is it possible to export env variable via Upstart?
But I have no idea where else I should look, being Windows developer for a very long time.
Best Answer
Adding to the answers already given, other places to set the variable would be:
/etc/env.d
(shell-independent),/etc/bash/bashrc
for bash users,/etc/zshenv
or/etc/zprofile
or/etc/zshrc
or/etc/zlogin
for zsh (as perman zsh
),FILES
section.