Enviroment Variables

How can I set enviroment variables so that they stick after I log out? I put them in my .profile file and still didnt work. Every time I log out and log back in I have to update my PATH and others for tomcat.

4 Replies

Are you using the "su" command at all?

-Chris

Unless you use the "-" argument, it doesn't log you in like a login would – so, do this:

su -

instead…

-Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct