Skip to content

Instantly share code, notes, and snippets.

@4np
Created January 24, 2013 13:55
Show Gist options
  • Save 4np/4621862 to your computer and use it in GitHub Desktop.
Save 4np/4621862 to your computer and use it in GitHub Desktop.
show users / ips connected to your computer
# show connected users / ip's
alias connected="netstat -f inet -n | awk '/\.548 / { print $5 }' | sed 's/\.[^.]*$//'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment