How to Set Environment Variables in Ubuntu

18-12-2015

Open Terminal and run following command:

sudo gedit ~/.profile

Add this line into the bottom of the profile file:

export MAIL_SERVICE_3DES_PASSWORD=1wasdfsdf

After adding the line, save and close the file, then run following command to immediatly update the profile file:

. ~/.profile

Lastly close the terminal, open a new Terminal and check this variable is set or not:

echo $MAIL_SERVICE_3DES_PASSWORD

If this file is not updated, please logout and login

© 2019 All rights reserved. Codesenior.COM