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.

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

1 Answer 1

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

 
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.