From 845668414fe12b23123564e31cf13f7ada765ac8 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Thu, 27 Feb 2014 00:51:09 +0800 Subject: [PATCH] add ss.md --- linux/ss.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 linux/ss.md diff --git a/linux/ss.md b/linux/ss.md new file mode 100644 index 000000000..9000f4fb1 --- /dev/null +++ b/linux/ss.md @@ -0,0 +1,19 @@ +# ss + +> Utility to investigate sockets + +- Dump all TCP/UDP/RAW/UNIX sockets + +`ss -a {{-t/-u/-w/-x}}` + +- Filter TCP sockets by states, only/exclude + +`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}` + +- Filter sockets by address and/or port + +`ss {{dst/src/dport/sport}} {{==/!=/>/