Forrest logo
back to the lastb tool

lastb:tldr:96524

lastb: Show a list of all last logged in users until a given time.
$ sudo lastb --until ${YYYY-MM-DD}
try on your machine

This command uses the "lastb" command with superuser privileges (sudo) to view the "bad login attempts" log on a Unix-like system.

The "--until" option is used to specify an end date until which the log entries should be displayed. The placeholder "${YYYY-MM-DD}" should be replaced with the desired date in the format year-month-day. For example, if you want to view the log entries until June 30, 2022, you would replace "${YYYY-MM-DD}" with "2022-06-30".

Overall, this command allows you to view the failed login attempts recorded in the system's log files until a specific date.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lastb tool