查看linux登陆历史信息

/etc/httpd/logs access_log文件里面就是登录记录 编辑/etc/profile文件,在文件末尾加入下面代码: [root@telecom225 /]# vi /etc/profileweb history USER=whoami USER_IP=who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g' if
相关文章
相关标签/搜索