Linux Lite Forums
Software - Support => Other => Topic started by: lionwag on December 20, 2020, 09:35:37 AM
-
How do I access the date and time a user is logged in and out?
-
Ohh, that would be useful for parental control. Like the Nintendo parental app.
I would like to know too ;)
-
@lionwag @TheDead
Could use 'last' - you'll want to head or more it thou (depending)....
last |more
last |head
-
The simple commands-- lastlog --will display up to a month of login data
w --will display current user and uptime
uptime --will display current session uptime
If you know the user name-- last -f /var/log/wtmp username
TC
-
Correct info, thanks. How do I add a SOLVED tag?
-
Login to the forum. Select your original post. Click modify, and then select prefix solved and save.
TC