linux 公共配置文件 profile .zshrc

/etc/profile export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC export PATH=/usr/share/jdk1.5.0_07/bin:$PATH for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i fi done unset i JAVA_HOME=/usr/share/jdk1.5 CATALINA_HOME=/usr/share/tomcat-5 ANT_HOME=/usr/share/ant PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$ANT_HOME/bin:$PATH export JAVA_HOME CATALINA_HOME ANT_HOME PATH LD_LIBRARY_PATH=/opt/disco/third-party/Linux-2.4c2.3-i686/rendezvous-6.9.z1/lib:$RUBY_HOME/lib/ruby:/usr/lib export LD_LIBRARY_PATH 当用户使用 zshell,就会在/home/userName/目录下 产生 .zshrc 配置文件 可以通过修改这个文件配置环境变量。 # # .zshrc is sourced in interactive shells. # It should contain commands to set up aliases, # functions, options, key bindings, etc. # # source profile like .bashrc if [ -f /etc/profile ]; then source /etc/profile fi CATALINA_BASE=/home/ USERNAME /tomcat ANT_HOME=/home/USERNAME/apache-ant PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH export CATALINA_BASE PATH ANT_HOME ~

你可能感兴趣的:(profile)