mac environment variable change code example
Example 1: print env variable mac
# Print all environment variables
printenv
Example 2: update path variable mac
export PATH=$PATH:/new/dir/location1
export PATH=$PATH:/new/dir1:/dir2:/dir/path/no3
# Print all environment variables
printenv
export PATH=$PATH:/new/dir/location1
export PATH=$PATH:/new/dir1:/dir2:/dir/path/no3