From 1c20849c87f2d936ec599b56f965507dee97ade6 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 1 May 2024 14:34:55 +0200 Subject: ss: move from monitor -> network --- src/SUMMARY.md | 2 +- src/monitor/README.md | 1 - src/monitor/ss.md | 39 --------------------------------------- src/network/ss.md | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 41 deletions(-) delete mode 100644 src/monitor/ss.md create mode 100644 src/network/ss.md (limited to 'src') diff --git a/src/SUMMARY.md b/src/SUMMARY.md index fa4917c..b7d5dc2 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -25,7 +25,6 @@ - [Resource analysis & monitor](./monitor/README.md) - [lsof](./monitor/lsof.md) - - [ss](./monitor/ss.md) - [pidstat](./monitor/pidstat.md) - [pgrep](./monitor/pgrep.md) - [ps](./monitor/ps.md) @@ -71,6 +70,7 @@ - [zfs](./linux/zfs.md) - [Network](./network/README.md) + - [ss](./network/ss.md) - [tcpdump](./network/tcpdump.md) - [tshark](./network/tshark.md) - [firewall-cmd](./network/firewall-cmd.md) diff --git a/src/monitor/README.md b/src/monitor/README.md index 4728b14..dee94aa 100644 --- a/src/monitor/README.md +++ b/src/monitor/README.md @@ -1,7 +1,6 @@ # Resource analysis & monitor - [lsof](./lsof.md) -- [ss](./ss.md) - [pidstat](./pidstat.md) - [pgrep](./pgrep.md) - [ps](./ps.md) diff --git a/src/monitor/ss.md b/src/monitor/ss.md deleted file mode 100644 index aaa27fd..0000000 --- a/src/monitor/ss.md +++ /dev/null @@ -1,39 +0,0 @@ -# ss(8) - -```markdown -ss [option] [filter] -``` - -```markdown -[option] - -p ..... Show process using socket - -l ..... Show sockets in listening state - -4/-6 .. Show IPv4/6 sockets - -x ..... Show unix sockets - -n ..... Show numeric ports (no resolve) - -O ..... Oneline output per socket -``` - -```markdown -[filter] - dport/sport PORT .... Filter for destination/source port - dst/src ADDR ........ Filter for destination/source address - - and/or .............. Logic operator - ==/!= ............... Comparison operator - - (EXPR) .............. Group exprs -``` - -# Examples - -Show all tcp IPv4 sockets connecting to port `443`: -```markdown -ss -4 'dport 443' -``` - -Show all tcp IPv4 sockets that don't connect to port `443` or connect to address `1.2.3.4`. -```markdown -ss -4 'dport != 443 or dst 1.2.3.4' -``` - diff --git a/src/network/ss.md b/src/network/ss.md new file mode 100644 index 0000000..aaa27fd --- /dev/null +++ b/src/network/ss.md @@ -0,0 +1,39 @@ +# ss(8) + +```markdown +ss [option] [filter] +``` + +```markdown +[option] + -p ..... Show process using socket + -l ..... Show sockets in listening state + -4/-6 .. Show IPv4/6 sockets + -x ..... Show unix sockets + -n ..... Show numeric ports (no resolve) + -O ..... Oneline output per socket +``` + +```markdown +[filter] + dport/sport PORT .... Filter for destination/source port + dst/src ADDR ........ Filter for destination/source address + + and/or .............. Logic operator + ==/!= ............... Comparison operator + + (EXPR) .............. Group exprs +``` + +# Examples + +Show all tcp IPv4 sockets connecting to port `443`: +```markdown +ss -4 'dport 443' +``` + +Show all tcp IPv4 sockets that don't connect to port `443` or connect to address `1.2.3.4`. +```markdown +ss -4 'dport != 443 or dst 1.2.3.4' +``` + -- cgit v1.2.3