talk (提供了一个文本聊天界面)

rose1 发表于 2020-07-09 11:56
浏览次数:
在手机上阅读

在类似Unix的操作系统上,talk命令提供了一个文本聊天界面,使您可以与其他登录用户进行实时通信。

查看英文版

目录

1 talk 运行系统环境

2 talk 说明

3 talk 语法

4 talk 例子

talk 运行系统环境

Linux

talk 说明

Talk是一种视觉通信程序,可以将线路从您的终端复制到另一个用户的线路,就像即时通讯服务一样。 首次调用时,talk与另一个用户计算机上的talk守护程序联系,该守护程序将在下面发送消息。

Message from TalkDaemon@his_machine...
talk: connection requested by your_name@your_machine.
talk: respond with: talk your_name@your_machine

给那个用户。此时,他然后输入

talk your_name@your_machine

只要收件人的登录名相同,接收者从哪台计算机答复都没有关系。建立通信后,两方可以同时键入内容。它们的输出将出现在单独的窗口中。键入control-L(^ L)将导致屏幕被重新打印。的擦除,压井管线,和字的擦除字符(通常1 H,为^ U,和^ W,分别地)将正常。要退出,只需键入中断字符(通常为^ C)即可;对话,然后将光标移到屏幕底部,并恢复终端 恢复到之前的状态。

对话支持回滚;使用esc-p和esc-n滚动窗口,使用ctrl-p和ctrl-n滚动另一个窗口。

如果您不想接收通话请求,则可以使用mesg命令阻止它们。默认情况下,通话请求通常不会被阻止。某些命令(尤其是nroff,pine和pr)可能会暂时阻止消息以保留其自身的输出。

Talk is a visual communication program which copies lines from your terminal to that of another user, much like an instant messenger service. When first called, talk contacts the talk daemon on the other user's machine, which sends the message below.

Message from TalkDaemon@his_machine...
talk: connection requested by your_name@your_machine.
talk: respond with: talk your_name@your_machine

to that user. At this point, he then replies by typing

talk your_name@your_machine

It doesn't matter from which machine the recipient replies, as long as his login name is the same. Once communication is established, the two parties may type simultaneously; their output will appear in separate windows. Typing control-L (^L) will cause the screen to be reprinted. The erasekill line, and word erase characters (normally ^H^U, and ^W, respectively) will behave normally. To exit, just type the interrupt character (normally ^C); talk then moves the cursor to the bottom of the screen and restores the terminal to its previous state.

talk supports scrollback; use esc-p and esc-n to scroll your window, and ctrl-p and ctrl-n to scroll the other window.

If you do not want to receive talk requests, you may block them using the mesg command. By default, talk requests are normally not blocked. Certain commands, in particular nroff, pine, and pr, may block messages temporarily to preserve their own output.

查看英文版

查看中文版

talk 语法

talk person [ttyname]

选件

person 如果您想与计算机上的某人交谈,那么person就是该人的登录名。如果要与另一台主机上的用户交谈,则该人的格式为“ user @ host ”。
ttyname 如果您想与多次登录的用户通话,则可以使用ttyname参数来指示适当的终端名称,其中ttyname的格式为'ttyXX'或'pts / X'。

talk person [ttyname]

Options

person If you want to talk to someone on your machine, then person is just the person's login name. If you want to talk to a user on another host, then person is of the form 'user@host'.
ttyname If you want to talk to a user who is logged in more than once, the ttyname argument may be used to indicate the appropriate terminal name, where ttyname is of the form 'ttyXX' or 'pts/X'.

查看英文版

查看中文版

talk 例子

talk hope

谈谈用户的希望。

talk hope
Talk to user hope.

查看英文版

查看中文版

其他命令行

tabs | tac | tail | tcopy | tty | tar | tbl | tcpdump | tcsh | time | tee | timex | telinit | telnet | test | top | touch | tput | tr | troff | traceroute |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条