Jump to content

How do I make an export permanent?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Guest_Jame_*

Guest_Jame_*
  • Guests
I'm using a script to export some variables:

$ TEIR='3'
$ export TEIR
but if I open another terminal or reboot the variable is gone at the console

$ echo TEIR

How do I make this permanent in all terminals and at reboot?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Add it to /etc/profile which will make it permanent

#3
Guest_Wanch_*

Guest_Wanch_*
  • Guests
I think you can add it to your .bashrc file as well. That should work.

#4
Guest_Jame_*

Guest_Jame_*
  • Guests
Do I add what I posted up there to those files?