0

For this bash script:

#!/bin/sh
export AccessToken=678
export AccessTokenSecret=wxy
export ApiKey=abc
export ApiSecret=123

How can I then ensure that printenv run at a later point in time will show these variables? That is, how are they made persistent?

Must they be added to the .bashrc file?

I would think there's a sort of "database" of environment variables which can be accessed?

  • 1
    /etc/environment but r u looking for lacalization? – PRATAP Jan 26 at 11:59
  • only care that when the script only has to run once, really. – Thufir Jan 26 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.