How to reload .bash_profile in Linux or Mac?

Whenever i add sth in .bash_profile, i’ll re-login to make sure the new .bash_profile is reloaded. Actually there is a command to reload the .bash_profile, n there is no need to re-login for the reload. And you know what? Re-login is a very stupid way (ya i’m stupid in for quite some time :p)
To reload .bash_profile, follow the steps below:-
- In your Terminal enter the command below and it will reload your .bash_profile without re-login or restart.
$ source .bash_profile
’source’ can be use in Mac, Linux or Unix system
- By now your new .bash_profile should have reloaded
Tags: reload bash, reload bash_profile, reload bash_profile linux, reload bash_profile mac
Posted at February 4th, 2010 by chua
If you think this article helps you to solve your problem and clear your headache, feel free to buy me a drink :)


