Monitoring

Who’s logged in?

$ w

Who’s listening?

$ sudo netstat -plunt

Who’s connected?

$ sudo netstat -pet