摘要: history命令添加时间和IP及用户名 1,添加显示时间 (1),在/etc/profile 添加如下:(显示用时间+ip+用户名) USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` #此处的值需要用反撇 阅读全文
posted @ 2022-11-16 18:45 爱上编程技术 阅读(55) 评论(0) 推荐(0)