Created
April 24, 2016 13:59
-
-
Save zhiguangwang/2863af712d8fe16562f38fdcb2e6787a to your computer and use it in GitHub Desktop.
Convenient aliases to list TCP listeners and connections on Ubuntu
This file contains 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
alias netls='sudo netstat -plant | grep LISTEN' | |
alias netls4='sudo netstat -4 -plant | grep LISTEN' | |
alias netls6='sudo netstat -6 -plant | grep LISTEN' | |
alias netlsc='sudo netstat -plant | grep -v LISTEN' | |
alias netlsc4='sudo netstat -4 -plant | grep -v LISTEN' | |
alias netlsc6='sudo netstat -6 -plant | grep -v LISTEN' | |
alias netlsa='sudo netstat -plant' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment