Install Lastlog On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

Install Lastlog On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian

lastlog

Show the most recent login of all users or of a given user.

Maintainer: Shadow package maintainers



Section: admin

Install lastlog

  • Debian apt-get install login Click to copy
  • Ubuntu apt-get install login Click to copy
  • Alpine OS apk add shadow Click to copy
  • Arch Linux pacman -S shadow Click to copy
  • Kali Linux apt-get install login Click to copy
  • Fedora dnf install shadow-utils-2 Click to copy
  • Raspbian apt-get install login Click to copy

Show the most recent login of all users or of a given user.

How to use lastlog?

Below are few example commands for lastlog that you can use in the terminal.

Display the most recent login of all users:
lastlogClick to copy
Display lastlog record of the specified user:
lastlog -u usernameClick to copy
Display records before than 7 days:
lastlog -b 7Click to copy
Display records more recent than 3 days:
lastlog -t 3Click to copy
Installation of latest lastlog command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.