lastlog
Show the most recent login of all users or of a given user. More information: <https://manned.org/lastlog>.
Install
- All systems
-
curl cmd.cat/lastlog.sh
- Debian
-
apt-get install login - Ubuntu
-
apt-get install login -
Alpine
-
apk add shadow - Arch Linux
-
pacman -S shadow - Kali Linux
-
apt-get install login - Fedora
-
dnf install shadow-utils-2 - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install login - Raspbian
-
apt-get install login - Docker
-
docker run cmd.cat/lastlog lastlogpowered by Commando
Show the most recent login of all users or of a given user. More information: <https://manned.org/lastlog>.
-
Display the most recent login of all users:
lastlog -
Display the lastlog record of the specified user:
lastlog --user username -
Display records older than 7 days:
lastlog --before 7 -
Display records more recent than 3 days:
lastlog --time 3
© tl;dr; authors and contributors