export command
Hi,
in Debian, which is the correct file to add export commands like: export APXS2=/opt/apache2/bin/apxs so that the command be executed by OS initialization thanks |
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
Code:
source ~/.bashrc --- rod. |
All times are GMT -5. The time now is 09:34 AM. |