Last active
May 25, 2018 05:28
-
-
Save nevermosby/c17d1aeaf21b60bd8f30c06288a52c15 to your computer and use it in GitHub Desktop.
ss command help dos
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
| ss -ltn # list out all the listening sockets | |
| ss -ltp # list out all the listening socketes and the related process name with pid | |
| ss -t4 state time-wait # list all Ipv4 tcp sockets that are in "time-wait" state | |
| # state list | |
| 1. established | |
| 2. syn-sent | |
| 3. syn-recv | |
| 4. fin-wait-1 | |
| 5. fin-wait-2 | |
| 6. time-wait | |
| 7. closed | |
| 8. close-wait | |
| 9. last-ack | |
| 10. closing | |
| 11. all - All of the above states | |
| 12. connected - All the states except for listen and closed | |
| 13. synchronized - All the connected states except for syn-sent | |
| 14. bucket - Show states, which are maintained as minisockets, i.e. time-wait and syn-recv. | |
| 15. big - Opposite to bucket state. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment