Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use talk Command parameters in linux

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the use of talk command parameters in linux". In daily operation, I believe that many people have doubts about the use of talk command parameters in linux. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the use of talk command parameters in linux". Next, please follow the editor to study!

The following is how to use the talk command parameter in linux.

Configuration of talk command parameters in linux:

My LINUX cannot use the talk command parameter in linux, error: error read from talk daemon.

The disable=yes of ktalk in redhat is modified / changed to no under etc/xinetd.d

Then restart:

# / sbin/service xinetd restart

Run:

Log in as root under tty1

Log in as xiaomao101 under tty2

Under tty1

$talk xiaomao101

Under tty2

$talk root

Then we can have a conversation!

More about talk command parameters in linux

The talk command parameter program in linux is used to "talk" between two users on Internet: enter "speak" through the keyboard and "listen" by looking at the terminal screen. The use of the talk command parameter program in linux is very simple. As long as you know the address of the person you are talking to, you can invite them to talk. For example, if the user jdx logged on to the host rs6000.cic.tsinghua.edu.cn wants to talk to the user wangxz logged on to the host tirc.cs.tsinghua.edu.cn, you can enter the following command:

$talk wangxz@tirc.cs.tsinghua.edu.cn

The related program (Talk Daemon) on Internet will send a message inviting wangxz to talk, and the following message will appear on the screen of the user wangxz and the bell will ring:

Message from Talk_Daemon@tirc.cs.tsinghua.edu.cn at 21:44...

Talk: connection requested by jdx@rs6000.cic.tsinghua.edu.cn

Talk: respond with: talk jdx@rs6000.cic.tsinghua.edu.cn

At this point, what the user wangxz should do is to follow the above information prompt, that is, enter the talk command in linux:

$talk jdx@rs6000.cic.tsinghua.edu.cn

After that, the connection is successfully established and the two users can talk. At this time, the terminal screens of both sides will display information [Connection established] and ring, at the same time, the screen is divided into upper and lower parts by a horizontal line by the talk command program in linux, the upper part is used to display the content entered by the user, and the lower part is used to display the content entered by the other side. Two users can type at the same time, and what they enter will be immediately displayed on both screens. When the user enters, you can press BACKSPACE to correct the previous character, press CTRL_W to delete a complete word, or use CTRL_U to delete a whole line. In addition, the user can refresh the screen by pressing CTRL_L. If you want to end the conversation, either party can press CTRL_C to disconnect, but say "good-bye" before ending the conversation and wait for the other party to respond. When the talk command program in linux ends, a message will be displayed on the screen:

[Connection closing. Exiting]

Not every time you ask the other party to talk can be successful, sometimes the other party does not log in, then the talk command program prompt message in linux:

[Your party is not logged on]

And exit; if the other person is logged in but does not respond for some reason (such as not using the machine), the talk command program in linux will send him an invitation message every 10 seconds and display it on his own screen:

[Ringing your party again]

If the user does not want to wait, he can press CTRL_C to terminate the talk command program in linux. Sometimes the system may have the following message:

[Checking for invitation on caller's machine]

This shows that the talk command programs in the linux of both sides are not compatible, so you can try the ntalk and ytalk commands at this time. If not, you have to go to the system administrator.

If the user does some urgent work, such as editing mail, and does not want to be disturbed by the invitation of the talk command in linux, he can use the command:

$mesg n

To temporarily refuse to talk, if a user invites him to talk, he can only get a prompt:

[Your party is refusing messages]

However, it is important to note that once the urgent work is completed. * immediately turn on the message receiving switch (use the command mesg y), otherwise you will lose a lot of opportunities for information exchange.

At this point, the study on "the use of talk command parameters in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report