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