用户操作日志统计代码PS1="`whoami`@`hostname`:"'[$PWD]'historyUSER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'`if [ "$USER_IP" = "" ]thenUSER_IP=\`hostname\`fiif [ ! -d /tmp/dbasky ...阅读全文