how can i find the time and date of turning on my computer in the recent days?
mint cinnamon
[SOLVED]Login History
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED]Login History
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Login History
F.e.
last -s -5days
. See man last
.Re: Login History
To elaborate on what rene said:
last
is a command-line program which shows you the last users who previously logged in. The optional -s
flag takes an expression of the desired time, such as -5days
. As for man last
, that's also a command-line program for viewing documentation often referred to as man pages, where last
is the page to be viewed. If you need help navigating man pages, press h
within one.I'm also Terminalforlife on GitHub.
Re: Login History
thanks for explaining, it was so helpfulTermy wrote: ⤴Mon Jul 26, 2021 5:25 am To elaborate on what rene said:last
is a command-line program which shows you the last users who previously logged in. The optional-s
flag takes an expression of the desired time, such as-5days
. As forman last
, that's also a command-line program for viewing documentation often referred to as man pages, wherelast
is the page to be viewed. If you need help navigating man pages, pressh
within one.