summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2021-03-31 20:41:35 +0000
committerjmc <>2021-03-31 20:41:35 +0000
commit17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa (patch)
treec551e63819efcb4fd4da06f93c7f7822ddc8c837 /src
parent204143467ecba49a508c860d8a061d6dbfec7672 (diff)
downloadopenbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.tar.gz
openbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.tar.bz2
openbsd-17dd71435e1ff8d1560ed9c654a29e51d3b8f4fa.zip
one of the examples needs an -N (and explanation);
diff from robert scheck discussed with and tweaked by sthen
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/nc.111
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index fff5857229..14733597c1 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.95 2020/02/12 14:46:36 schwarze Exp $ 1.\" $OpenBSD: nc.1,v 1.96 2021/03/31 20:41:35 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -25,7 +25,7 @@
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\" 27.\"
28.Dd $Mdocdate: February 12 2020 $ 28.Dd $Mdocdate: March 31 2021 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -414,7 +414,7 @@ On a second console
414.Pq or a second machine , 414.Pq or a second machine ,
415connect to the machine and port being listened on: 415connect to the machine and port being listened on:
416.Pp 416.Pp
417.Dl $ nc 127.0.0.1 1234 417.Dl $ nc -N 127.0.0.1 1234
418.Pp 418.Pp
419There should now be a connection between the ports. 419There should now be a connection between the ports.
420Anything typed at the second console will be concatenated to the first, 420Anything typed at the second console will be concatenated to the first,
@@ -427,7 +427,10 @@ and which side is being used as a
427.Sq client . 427.Sq client .
428The connection may be terminated using an 428The connection may be terminated using an
429.Dv EOF 429.Dv EOF
430.Pq Sq ^D . 430.Pq Sq ^D ,
431as the
432.Fl N
433flag was given.
431.Sh DATA TRANSFER 434.Sh DATA TRANSFER
432The example in the previous section can be expanded to build a 435The example in the previous section can be expanded to build a
433basic data transfer model. 436basic data transfer model.