environment variable ubuntu code example Example: how to set environment variable in ubuntu sudo -H gedit /etc/environment