Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of Linux's lastb command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today Xiaobian to share with you what the Linux lastb command is used for related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for everyone's reference, I hope you have something to gain after reading this article, let's learn about it together.

Linux common command lastb command is used to list the login system failed user related information, execute lastb command alone, it will read the file located in/var/log directory, named btmp, and the file content record login failed user list, all displayed.

syntax lastb [-adRx][-f ][-n ][accountname...] [Terminal ID...] Parameter Description:

-a Displays the host name or IP address of where to log in to the system on the last line.

-d Convert IP addresses to host names.

-f Specifies the log file.

-n or-Sets the number of columns displayed in the list.

-R does not display the host name or IP address of the login system.

-x Displays system shutdown, reboot, and execution level changes.

Examples show users who failed to log in

# lastb root tty7 :1 Thu May 13 11:26 - 11:26 (00:00) btmp begins Thu May 13 11:26:39 2014 Above is "What is the use of Linux lastb command" All the contents of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report