tldr/pages/linux/ncat.md

17 lines
451 B
Markdown
Raw Permalink Normal View History

2017-11-01 19:52:54 +00:00
# ncat
2017-11-06 11:00:45 +00:00
> Use the normal `cat` functionality over networks.
> More information: <https://manned.org/ncat>.
2017-11-01 19:52:54 +00:00
- Listen for input on the specified port and write it to the specified file:
2018-03-26 08:47:48 +01:00
`ncat -l {{port}} > {{path/to/file}}`
- Accept multiple connections and keep ncat open after they have been closed:
`ncat -lk {{port}}`
2017-11-01 19:52:54 +00:00
- Write output of specified file to the specified host on the specified port:
2018-03-26 08:47:48 +01:00
`ncat {{address}} {{port}} < {{path/to/file}}`