So I was asked what was the easiest and fastest way to determine who was logged into an Oracle Linux host. This is what I came up with. Have a better one? Post a comment below.
> who
> last
> pinky (instead of finger… get it?)
For secure shell details:
> lsof | grep “ssh->”
> lsof -i :22
> lsof -i -n | egrep ‘\<ssh\>’