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

Ok how do I know the the number/hours I have logged in? I just want to know the time I have spent since I logged in.

share|improve this question
up vote 3 down vote accepted

You can check when you logged in with the last command, it shows login time, when the session ended, and other useful bits of information.

You can use it by typing, for example: last username -1 where username is your own username, which will show your most recent login. It should say 'still logged in' on the right.

If it's not the correct session, you can display more by changing the number in the command, such as last username -5.

Or to show all sessions still logged in, last username | grep "still logged in"

share|improve this answer
Thanks! Don't know why the login info isn't in the system monitor app – Mysterio May 13 '12 at 12:39

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.