Since the entire class has recently logged on to solaris, so many students don't chat much. Summary of multi-user communication:
1. write
The write format is write user [ttyname]. You can use the who command to view logon users and directly communicate with them in the preceding format.
2. talk
The alk command allows both parties to implement real-time conversations like MSN and QQ. The command format is as follows:
Talk user-name
When a user sends a conversation request to another user, the conversation is established only when the other party accepts the conversation request, that is, the other party uses the talk command. At this time, both terminals will display "[connectestablished]", so that both parties can input text from the keyboard, and talk will display the input on the screen of the other party, if either party presses the button, the conversation will be closed.
3. If wall wants all login users to receive your message, wall is the best choice: wall message; all users can receive
4. mesg
If you do not want to receive messages, mesg can help you. View the current acceptance status of the mesg: is y accept, is n does not receive. Select to receive or not to receive mesg [n | y.
Recommended reading:
Linux system v ipc traffic signals and shared memory instances
Unix/Linux Shared Memory Applications and traps
Step by step Linux C: Shared Memory communication instance
Linux ipcs determines shared memory usage
Linux inter-process communication (system v signal lamp + system v shared memory) instance
Linux inter-process communication (system v signal lamp + posix shared memory) instance