摘要: 将以下加入到/etc/profile 最后history USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` if [ "$USER_IP" = "" ] then USER_IP=`hostname` fiif [ ! -d /tmp/dbasky ] then mkdir /tmp/dbasky chmod 777 /tmp/dbasky fiif [ ! -d /tmp/dbasky/${LOGNAME} ] then 阅读全文
posted @ 2012-08-15 18:22 Alex~ 阅读(4930) 评论(0) 推荐(0) 编辑