How to permanently export a variable in Linux?

I am running RHEL6, and I have exported an environment variable like this:

export DISPLAY=:0

That variable is lost when the terminal is closed. How do I permanently add this so that this variable value always exists with a particular user?

6 Answers
6

Leave a Comment