Install Lastlog On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian
Install lastlog
-
Debian
apt-get install loginClick to copy -
Ubuntu
apt-get install loginClick to copy -
Alpine OS
apk add shadowClick to copy -
Arch Linux
pacman -S shadowClick to copy -
Kali Linux
apt-get install loginClick to copy -
Fedora
dnf install shadow-utils-2Click to copy -
Raspbian
apt-get install loginClick 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 copyDisplay lastlog record of the specified user:lastlog -u usernameClick to copyDisplay records before than 7 days:lastlog -b 7Click to copyDisplay 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.




