标签:history
在/etc/profile里添加如下: #History export HISTTIMEFORMAT="[%F %T]" HISTDIR=/home/common/.hist if [ ! -d $HISTDIR ]; then mkdir -p $HISTDIR chmod 777 $HISTDIR fi export HISTSIZE=100000 export HISTFILE="$HISTDIR/${LOGNAME}.hist" chmod 600 $HISTDIR/${LOGNAME}.hist 2>/dev/null who -u am i 2>/dev/null >>$HISTDIR/${LOGNAME}.hist
Linux中history历史命令使用方法详解:
http://os.51cto.com/art/201205/335040.htm
标签:history
原文地址:http://svsky.blog.51cto.com/10184644/1957063