I have recently installed NS2, a network simulator. After installation, I need to add append some directory locations to PATH environment variable. Apparently, this can be done temporarily by doing-
However on restarting the terminal, these additions will not be there. How do I make the changes permanent? On some Google search, some suggestions were to make changes to bash_profile or .profile located in home directory(Could not find this one).
Secondly, I have to add some variables permanently to env. I did this temporarily by
and then typing env reflects these changes. How to make these additions permanent?
Thanks in advance.