Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 '14 at 13:30
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


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.