1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:42:10 +02:00
tldr/pages/linux/ncat.md
2018-03-26 08:47:48 +01:00

15 lines
404 B
Markdown

# ncat
> 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}}`
- Accept multiple connections and keep ncat open after they have been closed:
`ncat -lk {{port}}`
- Write output of specified file to the specified host on the specified port:
`ncat {{address}} {{port}} < {{path/to/file}}`