Reload .profile in bash shell script (in unix)? -


I am new to booting shell scripting, and it has come across a challenge. I know that I can only reload my ".profile" file:

 . .profile  

But I'm trying to execute the same in a bass script and it's not working right now. any idea?

Try it again to reload current shell:

  source ~ /. Profile  

Comments