tldr/pages/linux/ncat.md

12 lines
306 B
Markdown
Raw Normal View History

2017-11-01 22:52:54 +03:00
# ncat
2017-11-06 14:00:45 +03:00
> Use the normal `cat` functionality over networks.
2017-11-01 22:52:54 +03:00
- Listen for input on the specified port and write it to the specified file:
2017-11-06 14:00:45 +03:00
`ncat -l {{port}} > {{/path/to/file}}`
2017-11-01 22:52:54 +03:00
- Write output of specified file to the specified host on the specified port:
2017-11-06 14:00:45 +03:00
`ncat {{address}} {{port}} < {{/path/to/file}}`