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
在使用Laravel中如果要进行复杂的查询,那么通过模型中的函数来查询是不行的,所以本文主要记录如何通过aggregate来进行复杂的查询。
速查表是自己整理了一份在工作中常用的一些资料,包含了自己在日常开发中需要常常用到的相关技术。可以给读者进行参考。
Python调用WPS把文档转换PDF,并把PDF转图片,首先需要安装WPS,然后利用pypiwin32把文档转化成PDF,再利用fitz、PyMuPD把PDF转化成图片
Centos中用Chrome将网页导出为PDF,chrome --headless --print-to-pdf https://developer.chrome.com/
快速生成表格
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问题