Home tmade.de

Home Wiki

EXPORT

Export Environment Variable:

export JAVA_HOME='/usr/java/jdk1.6.0_06'
export JAVA_HOME='/usr/java'
export JDK_HOME='/usr/java'
export J2RE_HOME='/usr/java/jre'
export JRE_HOME='/usr/java/jre'
export ANT_HOME='/usr/ant/'
export PATH=$PATH:/data/myscripts
export PATH="${PATH/\/usr\/bin/}"                #Remove "/usr/bin" from path
export PATH="${PATH/\/path\/to\/remove/}"        #Remove "/path/to/remove"
export PATH=/usr/local/custom:$PATH              #Add path to the beginning of "path" value
export EDITOR=vi                                 #To specify an editor
export EDITOR=nano

Export personal variable to“/etc/bash.basrc.local”.

Refresh Environment Variables:

source /etc/bash.bashrc.local
. /etc/bash.bashrc.local

or

. /etc/profile /etc/bash.bashrc
shell/export.txt · Last modified: 2017/12/09 01:19 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki