1

This question already has an answer here:

What is the best and standard way for setting env vars in Linux so they are visible for all processes (and users) ?

Is adding them to /etc/environment the best practice ?

marked as duplicate by Kusalananda, Jeff Schaller, Rui F Ribeiro, Archemar, thrig Jun 29 '17 at 13:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What Unix are you using? – Kusalananda Jun 29 '17 at 11:00
  • I am interested in generic Unix way. If there is not then generic Linux answer is next :) – Arkonix Jun 29 '17 at 11:03