Linux – How to save environment variable from Terminal

environment-variableslinuxterminalUbuntu

I am trying to save the PATH environment variable from the Terminal running on a Ubuntu system.

I typed in the following however it does not get saved.

export PATH=/home/david/Komodo-Edit-6/bin/:$PATH

Any suggestions on how I can fix this? Thank you.

Best Answer

Add that line to ~/.bashrc, or the appropriate configuration file for your shell.

Related Question