Linux lastb command
Linux lastb command lists information about the user login system failure.
Lastb instruction execution alone, it reads located in / var / log directory, file name btmp, and the contents of the file
List of user login record of failure, the entire show.
grammar
lastb [-adRx][-f <记录文件>][-n <显示列数>][帐号名称...][终端机编号...]
Parameter Description:
- -a sign of the system where the host name or IP address appears in the last line.
- -d the IP address into a host name.
- -f <log file> Specifies the log file.
- -n <Display Columns> or - the number of display columns <Display Columns> Settings listed list.
- -R Does not display the sign in the host name or IP address of the system.
- -x Display the system shutdown, reboot, and change the level of execution and other information.
Examples
Login failed for user display
# lastb root tty7 :1 Thu May 13 11:26 - 11:26 (00:00) btmp begins Thu May 13 11:26:39 2014