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