I have first executed the command: export
Then I have opened .bash_profile file: vi ~/.bash_profile. In this file, I put:
Then if the terminal is closed and restarted,
Typing displays no result. How to set the path permanently
I got one solution in this site Data Analytics Certification