문서의 이전 판입니다!
# date 관련 D_YMD=`date +%Y%m%d` D_Y-M-D=`date +%Y-%m-%d` # TMOUT=0 export TMOUT D_YMD D_Y-M-D
export를 사용하면 하위 프로세스까지 환경변수가 상속됨
실행된 결과를 Value로 받을 때는 ('`'|탭위의 기호)임에 주의하자!!
alias rlog='tail -n200 -f ${RSA_ROOT}/logs/javaLog/log_${D_YMD}.txt' alias tlog='tail -n200 -f ${TOMCAT_ROOT}/logs/localhost.${D_Y-M-D}.log' alias search='cd ${RSA_ROOT}/bin' alias sfront='cd ${RSA_ROOT}/bin/html'
$> source ~/.bashrc or $> . ~/.bashrc
# .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' HADOOP_INSTALL=/usr/local/hadoop-1.0.3 PATH=$PATH:$HADOOP_INSTALL/bin # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi