Those commands are not executed by the OS. They are executed by the command shell (at least if it is Bourne style shell, like
bash), under certain circumstances. If you want all users to have the same commands invoked each time they start a new shell, then you can put them in
/etc/bashrc. If you only want them to be established for your own userId, then the
~/.bashrc file is the right place. Any new shell that is launched thereafter will read and set the new values. If you want to have an existing shell to re-read the settings, you can
This should always work, since
~/.bashrc for each user normally calls the global
bashrc file.
--- rod.