How to reload a .bash_profile from the Terminal
In this tutorial, we are going to learn about how to reload a .bash_profile
from the terminal after making the changes to it.
Reloading the .bash_profile
We can reload a .bash_profile
directly from the current terminal without opening a new one, by using the following command.
. ~/.bash_profile
The dot (
.
) operator execute commands from the file in the current environment.
Similarly, you can also use the source
command.
source ~/.bash_profile