Linux Lite Forums

Full Version: Access to user time log
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Wink
[member=10111]lionwag[/member] [member=6733]TheDead[/member]

Could use 'last' - you'll want to head or more it thou (depending)....

Code:
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