1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 09:55:48 +02:00

nc: Improve title and some examples

This commit is contained in:
Jaseem Abid 2019-02-16 17:15:04 +00:00 committed by Agniva De Sarker
parent 0dfb3ff75c
commit d498c53031

View file

@ -1,8 +1,8 @@
# nc
> Reads and writes tcp or udp data.
> Netcat is a versatile utility for working with TCP or UDP data.
- Listen on a specified port:
- Listen on a specified port and print any data received:
`nc -l {{port}}`
@ -30,10 +30,10 @@
`nc -q {{timeout}} {{ip_address}}`
- Port scanning:
- Scan the open ports of a specified host:
`nc -v -z {{ip_address}} {{port}}`
- Proxy and port forwarding:
- Act as proxy and forward data from a local TCP port to the given remote host:
`nc -l {{port}} | nc {{hostname}} {{port}}`
`nc -l {{local_port}} | nc {{hostname}} {{remote_port}}`