0

Can I set the global value of an environment variable after having logged in? That is achieve the effect of having set it in ~/.profile.

1
  • What variable do you want to set? Commented Jul 21, 2019 at 13:31

1 Answer 1

0

Yes you can however any executable that are launch before will not get the new value.

Just use :

export TMOUT=100
export FOO=bar

If you are in text session (putty/ssh) this is probably OK, if you are in a GUI session, this may cause problems if variable to be set are use by GUI programs.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.