Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If I run:

last -t 20150101010101

I still get logins displayed (even though the date is in the future)

If I run

last -t 20140723123000

I still get logins displayed from months back.

I would expect to only see logins from earlier on today. Is this correct?

share|improve this question
1  
from man last: -t, --until time --> Display the state of logins until the specified time., so the output you are getting makes sense. –  fedorqui Jul 23 at 13:30

1 Answer 1

up vote 5 down vote accepted

last -t YYYYMMDDHHMMSS shows the status of the login files up to the date specified, rather than since the date specified.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.