[SOLVED]Login History

Quick to answer questions about finding your way around Linux Mint as a new user.
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.
Locked
gnxfce
Level 1
Level 1
Posts: 26
Joined: Sun Oct 11, 2020 5:00 am

[SOLVED]Login History

Post by gnxfce »

how can i find the time and date of turning on my computer in the recent days?

mint cinnamon
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.
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

Re: Login History

Post by rene »

F.e. last -s -5days. See man last.
User avatar
Termy
Level 12
Level 12
Posts: 4254
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Login History

Post by Termy »

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.
gnxfce
Level 1
Level 1
Posts: 26
Joined: Sun Oct 11, 2020 5:00 am

Re: Login History

Post by gnxfce »

rene wrote: Mon Jul 26, 2021 2:40 am F.e. last -s -5days. See man last.
thank you, it worked amazingly
gnxfce
Level 1
Level 1
Posts: 26
Joined: Sun Oct 11, 2020 5:00 am

Re: Login History

Post by gnxfce »

Termy 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 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.
thanks for explaining, it was so helpful
Locked

Return to “Beginner Questions”