Thursday, December 1, 2011

Reload bashrc without Reboot

"exec bash", that is the tittle of my today's posting. Did you recognize that command? That is a Linux shell script command to execute .bashrc start up file.
As you know, everytime Linux is started (I use Ubuntu), it always running .bashrc file to start services. If you want to execute your script every start up, you can simply add those scrip line in .bashrc file. After finishing edit the file, you don't need to restart your computer to test whether your startup script is working. What you need is simply execute
   exec bash
in your terminal, then it will execute .bashrc file. :-)
the similar command is:
   source ~/.bashrc
in your terminal, then it will execute .bashrc file. :-)

No comments:

Post a Comment