Why do I need to source bash_profile every time

后端 未结 6 1353
[愿得一人]
[愿得一人] 2021-02-04 01:28

I have installed Hadoop and every time I want to run it, first I have to do this:

source ~/.bash_profile

or it won\'t recognize the command

6条回答
  •  别那么骄傲
    2021-02-04 02:13

    Terminal -> Preference -> profile -> Shell -> Run command : source ~/.bash_profile

    Tick on run inside shell.

    After doing all those , just logout and check weather everything works fine or not

提交回复
热议问题