1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00
This commit is contained in:
nguyenchr 2014-03-03 21:22:40 +11:00
parent 9fdabfccaa
commit a4ff4c1137

23
common/nc.md Normal file
View file

@ -0,0 +1,23 @@
# nc
> reads and writes tcp or udp data
- listen on a specified port
`nc -l {{port}}`
- connect to a certain port (you can then write to this port)
`nc {{ip_address}} {{port}}`
- set a timeout
`nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}`
- serve a file
`cat somefile.txt | nc -l {{port}}`
- receive a file
`nc {{ip_address}} {{port}} > somefile.txt`