Linux Mint - adding environment variables permanently [closed] Linux Mint - adding environment variables permanently [closed] linux linux

Linux Mint - adding environment variables permanently [closed]


Try this in the ~/.pam_environment in your home folder. If it does not exist then create it:

PATH DEFAULT=${PATH}:/home/paul/avatar-gf-1.0-ea/glassfish4/bin/

You will need to log in and out.


Run bash -xl to see which startup files are loaded with your shell. .profile may actually not be read. Otherwise try adding export to your assignment:

export PATH=$PATH:/home/paul/avatar-gf-1.0-ea/glassfish4/bin/

Reference about Bash's startup files: Bash Startup Files


I'm running Linux Mint 18.3 Cinnamon. The changes in file ~/.profile got picked up only after I logged out/in from the account. The terminal restart was not enough in my case.