0

I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?

1 Answer 1

2

Just source the file by running . .bash_profile will do the job.

3
  • Or, since this is bash, source .bash_profile Oct 20, 2018 at 15:45
  • @glennjackman source doesn't work, . works. Oct 21, 2018 at 13:20
  • that means your shell is not bash. At a bash interactive prompt, enter help . source and you might notice ... certain similarities. Oct 21, 2018 at 13:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .