System Grab Bag

View all TLDR pages from Linux (or from all pages)

ncat

Use the normal cat functionality over networks. More information: https://manned.org/ncat.
  • 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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.