Skip to content

Instantly share code, notes, and snippets.

@sunlee-newyork
Last active June 25, 2017 18:38
Show Gist options
  • Save sunlee-newyork/96153cd7bd16b00e09974057e462fd96 to your computer and use it in GitHub Desktop.
Save sunlee-newyork/96153cd7bd16b00e09974057e462fd96 to your computer and use it in GitHub Desktop.
List of commands for Linux/Mac

Linux

all open ports: netstat -ntlp | grep LISTEN

Mac

git diff lines: git diff --stat `git hash-object -t tree /dev/null` | tail -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment