From f7b7265c3e9dca6a719b7ec4b14dfc1ea13a3170 Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Wed, 1 Nov 2017 20:52:54 +0100 Subject: [PATCH 1/3] ncat ncat: create page --- pages/linux/ncat.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/linux/ncat.md diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md new file mode 100644 index 000000000..d52d678da --- /dev/null +++ b/pages/linux/ncat.md @@ -0,0 +1,12 @@ +# ncat + +> `cat` over networks +> Use the normal cat functionality over networks + +- Listen for input on the specified port and write it to the specified file: + +`ncat -l {{port}} > /path/to/file` + +- Write output of specified file to the specified host on the specified port: + +`ncat {{address}} {{port}} < /path/to/file` From 9b6606587bf5c9ee3bf522d9e80c270216f7a3eb Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Wed, 1 Nov 2017 22:48:18 +0100 Subject: [PATCH 2/3] ncat: add missing dots --- pages/linux/ncat.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md index d52d678da..edc91191a 100644 --- a/pages/linux/ncat.md +++ b/pages/linux/ncat.md @@ -1,7 +1,7 @@ # ncat -> `cat` over networks -> Use the normal cat functionality over networks +> `cat` over networks. +> Use the normal cat functionality over networks. - Listen for input on the specified port and write it to the specified file: From 4ce03d950c9cdadcbe6d2158194a020587a7f523 Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Mon, 6 Nov 2017 12:00:45 +0100 Subject: [PATCH 3/3] ncat: update description and style --- pages/linux/ncat.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md index edc91191a..6b6a7322a 100644 --- a/pages/linux/ncat.md +++ b/pages/linux/ncat.md @@ -1,12 +1,11 @@ # ncat -> `cat` over networks. -> Use the normal cat functionality over networks. +> Use the normal `cat` functionality over networks. - Listen for input on the specified port and write it to the specified file: -`ncat -l {{port}} > /path/to/file` +`ncat -l {{port}} > {{/path/to/file}}` - Write output of specified file to the specified host on the specified port: -`ncat {{address}} {{port}} < /path/to/file` +`ncat {{address}} {{port}} < {{/path/to/file}}`