Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.81 sec)
Reloading bash_profile after making changes to the file

If I adjust my .bash_profile file can I reload it without having to log back in again ?
Asked by:
nablle
101 points
 Report Abuse
 Share Page - Category: Ubuntu Linux - Tags: Reloading .bash_profile after making changes to the file
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (4)

Best Answer

Try . ~/.bash_profile this will not however remove any aliases/variables etc that you may have previously set and have removed.

Response by:
_SteveWilson ...
4290 points
Yes sure.... execute it by:

. ~/.bash_profile

dot(.) means current shell

Response by:
jalal
3623 points
Both are great, I'll choose the first answer.

Response by:
nablle
101 points
This also works in the same way if you're in your home directory:

source .bash_profile

Response by:
BonoEstente
1464 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle