Linux – running .bashrc versus new login

bashrclinux

I added new alias into .bashrc

Running .bashrc doesn't create that alias but new log in yes.

Could you somebody explain why is that so and how I can test if the new .bashrc works without doing test log in?

Best Answer

"exec bash" should do it. Basically just restarts the bash shell, reading .bashrc in the process.

Related Question