linux variables



To set variable only for current shell:
VARNAME="my value"
To set it for current shell and all processes started from current shell:
export VARNAME="my value"      # shorter, less portable version
To set it permanently for all future bash sessions add such line to your .bashrc file in your $HOMEdirectory.
To set it permanently, and system wide (all users, all processes) add set variable in /etc/environment:
gksudo gedit /etc/environment

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all