#### vim /etc/profile
USER_IP=`who -u am i | awk '{print $NF}'|sed -e 's/[()]//g'`
if [ -z "$USER_IP" ]
then
USER_IP="NO_client_IP"
fi
export HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S-$USER_IP-$USER]"
export HISTSIZE=3000
source /etc/profile
微信扫一扫
#### vim /etc/profile
USER_IP=`who -u am i | awk '{print $NF}'|sed -e 's/[()]//g'`
if [ -z "$USER_IP" ]
then
USER_IP="NO_client_IP"
fi
export HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S-$USER_IP-$USER]"
export HISTSIZE=3000
source /etc/profile
相关推荐