Posts: 5
Threads: 3
Joined: Dec 2019
Reputation:
0
How do I access the date and time a user is logged in and out?
(This post was last modified: 12-22-2020, 05:59 PM by
lionwag.)
Posts: 936
Threads: 24
Joined: Dec 2016
Reputation:
0
Ohh, that would be useful for parental control. Like the Nintendo parental app.
I would like to know too ;)
- TheDead (TheUxNo0b)
If my blabbering was helpful, please click my [Thank] link.
Posts: 1,849
Threads: 21
Joined: Sep 2015
Reputation:
0
[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
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
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
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
(This post was last modified: 12-21-2020, 03:06 PM by
trinidad.)
Posts: 5
Threads: 3
Joined: Dec 2019
Reputation:
0
Correct info, thanks. How do I add a SOLVED tag?
(This post was last modified: 12-21-2020, 06:23 PM by
lionwag.)
Posts: 1,542
Threads: 147
Joined: Mar 2016
Reputation:
4
Login to the forum. Select your original post. Click modify, and then select prefix solved and save.
TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.