Ubuntu – Reload bash’s .profile without logging out and back in again

bash

Is it possible to coerce bash to reload the .profile file without logging out and back in again?

Best Answer

This should work for the current terminal:

. ~/.profile

. is a bash builtin and a synonym for source, see man bash:

. filename [arguments]
source filename [arguments]
     Read and execute commands from filename in the current shell environment (…).