mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 13:35:44 +02:00
nc: Improve title and some examples
This commit is contained in:
parent
0dfb3ff75c
commit
d498c53031
1 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
# nc
|
# 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}}`
|
`nc -l {{port}}`
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@
|
||||||
|
|
||||||
`nc -q {{timeout}} {{ip_address}}`
|
`nc -q {{timeout}} {{ip_address}}`
|
||||||
|
|
||||||
- Port scanning:
|
- Scan the open ports of a specified host:
|
||||||
|
|
||||||
`nc -v -z {{ip_address}} {{port}}`
|
`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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue