News, tips, partners, and perspectives for the Oracle Solaris operating system


Guest Author

Just a quick tip as this question came across the opensolaris-help forum - "How can I (as admin) find out when a certain user e.g. "karl" most recently logged in and most recently logged out of a system?"

The simple answer is last:

bleonard@opensolaris:~$ last karl 
karl pts/5 Thu Jul 15 11:12 still logged in
karl sshd Thu Jul 15 11:12 still logged in
karl pts/5 opensolaris Thu Jul 15 11:11 - 11:12 (00:00)
karl sshd opensolaris Thu Jul 15 11:11 - 11:12 (00:00)

Join the discussion

Comments ( 5 )
  • Prudhvi Surapaneni Thursday, July 15, 2010

    Are you serious about this posting?. Which opensolaris user wouldn't know that. I mean any unix/Linux familiar user would know this. Anyways I am glad that there is atleast a posting on observatory :)

  • Brian Leonard Thursday, July 15, 2010

    Well, I didn't :-). Nor did the guy that posted the question to the help alias. I figured it was basic, but thought I'd put it out there anyhow.

  • PTecza Friday, July 16, 2010

    Ufff! I thought that's your last blog entry :) Brian, please don't scare me ;)

  • Brian Leonard Friday, July 16, 2010

    Now that is funny!

  • Charlie Hunt Tuesday, August 3, 2010

    Well, I must be one of those stupid Unix users who didn't know about "last" too? Thanks for telling me about it!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.