Thursday, December 1, 2016

Manual Pages and Communication Commands

Manual Pages and Communication Commands

Online Manual Pages

The online guide pages library should be installed with every UNIX variant, unless an option is entered otherwise. The guide pages are usually located under the /usr/share/man/ directory and are prompted as "man <command_name>".

You can use 'F' to go forward one page, 'B' to go backward one page, 'Return' to read line by line, and 'Q' to exit the grid from an online guide page.

Multiple manual pages related to a keyword may be encountered while accessing the manual pages. For example, there are pages in both the first section and the second section regarding the time word. The man program may be displaying the first one it finds in such cases or both in order. The manual pages can be viewed in the "man 2 time" format by first giving the manual section followed by the keyword.

Communication Commands

The "mesg y" command can be run to accept messages from other users. The "mesg n" command closes the message communication channel. If this command is given, no message will be accepted from other users in the system.

With the "write user_name" command, a message can be sent to the user who has logged in to the system at that time. To send a message to an uninitiated user, an e-mail can be sent with the command "mail user_name".

After the "write user_name" command is issued, the message to be transmitted can be written. The "Ctrl + D" key combination can be used to end the message application.

With the "wall" command, messages can be sent to all users who have logged in to the system at that time.

After the "wall" command is issued, the message to be transmitted can be written. The "Ctrl + D" key combination can be used to end the message application.

/etc/motd

When users log on, the "/etc/motd" file is displayed. By submitting announcement messages to this file, you can make sure everyone who logs in to the system can see the message (motd = Message Of The Day).

To read my previous article: Interaction with Linux - Shells
 

No comments :

Post a Comment

Comments system

Disqus Shortname