Thursday, September 30, 2010

How to check the user's last login date and time on Linux server?

Document can be accessed from here.

--Moid

2 comments:

  1. Moid if u do last -100 |sort -k 5 vs last -100 |grep -v oracle |grep -v reboot |sort -k 5. I don't see any difference.

    ReplyDelete
  2. This is how my alias called llfo is set on 223 server.

    alias llfo='last -adi -1000 |grep -v root | grep -v reboot |grep -v 192.168.0 | sort -gk 5n,5 -k 6'

    For verification purpose, type, "alias llfo" on 223 server and you will see the complete command.

    ReplyDelete

Followers