Last active
December 15, 2015 06:09
-
-
Save skarfacegc/5214453 to your computer and use it in GitHub Desktop.
Random useful shell commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list current network connections and refrsh every 2 seconds | |
watch "lsof -i -P |grep ESTABLISHED |awk '{printf \"%15.15s \\t%s\\n\", \$1, \$9}'" | |
# Show the number of commits per file | |
find . -type f -exec sh -c "echo {} ;git log --pretty=oneline {} |wc -l" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment