lastb:显示用户登录失败的记录
简介lastb命令用于显示用户登录失败日志记录。从日志文件/var/log/btmp读取信息。
说明
lastb命令用于显示用户登录失败日志记录。从日志文件/var/log/btmp读取信息。
格式
lastb [option]
常用参数
- -n:显示指定结果的行数,其实也可以省略该参数
示例
[root@localhost ~]# lastb
skip ssh:notty 192.168.71.107 Sat May 12 16:57 - 16:57 (00:00)
skip ssh:notty 192.168.71.107 Sat May 12 16:56 - 16:56 (00:00)
skip ssh:notty 192.168.71.107 Sat May 12 16:55 - 16:55 (00:00)
(unknown tty1 Sat May 5 13:30 - 13:30 (00:00)
root tty1 Sat May 5 13:30 - 13:30 (00:00)
btmp begins Sat May 5 13:30:09 2018
[root@localhost ~]# lastb -3
skip ssh:notty 192.168.71.107 Sat May 12 16:57 - 16:57 (00:00)
skip ssh:notty 192.168.71.107 Sat May 12 16:56 - 16:56 (00:00)
skip ssh:notty 192.168.71.107 Sat May 12 16:55 - 16:55 (00:00)
btmp begins Sat May 5 13:30:09 2018
[root@localhost ~]# lastb -n 2
skip ssh:notty 192.168.71.107 Sat May 12 16:57 - 16:57 (00:00)
skip ssh:notty 192.168.71.107 Sat May 12 16:56 - 16:56 (00:00)
btmp begins Sat May 5 13:30:09 2018
网页扫描二维码库:Html5-Qrcode,官网地址:https://scanapp.org/html5-qrcode-docs/
nodejs中使用npm和yarn,使用最新阿里云镜像 aliyun mirror,网上很多还是文章用的是下面这个地址~~yarn config set registry https://registry.npm.taobao.org~~
Ansible-tower工具搭建和使用
对加密相关概念整理
快速生成表格
Electron页面跳转、浏览器打开链接和打开新窗口
在Mac电脑中,如何对Git的用户名和密码进行修改呢?起初不懂Mac,所以整了很久,本文将记录如何对这个进行操作,以便后期使用。
在使用Git的过程中,不想每次都输入用户名和密码去拉取代码,所以就需要保存这些信息,那么既然有保存了,就必须有清除功能。
Docker编译镜像出现:fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.2c4ac24e.tar.gz: No such file or directory问题