Is it possible to coerce bash to reload the .profile file without logging out and back in again?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
This should work: |
|||
|
If you don't want to start a new shell but execute the script in the current shell, you source it: source script_name.sh
The Bash source built-in is a synonym for the Bourne shell . (dot) command. |
|||
|
|