To test its effects immediately instead of having to reload the terminal
d. This directory contains files configuring system-wide behavior of specific programs and site-specific environment customization.
The /etc/profile File The /etc/profile contains Linux system wide environment and other startup scripts. Usually the default command line prompt is set in this file. It is used for all users logging in to the bash, ksh, or sh shells.
The difference is simple, the /etc/profile is executed only for interactive shells and the /etc/bashrc is executed for both interactive and non-interactive shells. In fact in Ubuntu the /etc/profile calls the /etc/bashrc directly.
use source /etc/profile
for details, man source or you can checkout this link http://bash.cyberciti.biz/guide/Source_command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With