add env in linux code example Example 1: add environment variable linux vi ~/.bash_profile Example 2: add environment variable linux source ~/.bash_profile