Linux Information exchange command
1.echo: Display text on the monitor
Command syntax:
echo [-n] [ string ]
-N: indicates that the output text is not wrapped.
Example :
(1) will " Hello Linux "write to standard output
#echo Hello Linux
(2) the text " Hello Linux "Add to New file NewFile in
#echo Hello Linux>newfile
2.MESG: set permissions for other users to send information
Syntax commands :
MESG [Y|n]
Example :
(1) displays whether the current computer allows other users to use the Write command to send itself the status of a message
#mesg
(2) allow other users to send information to the current terminal
#mesg y
(3) do not allow other users to send information to the current terminal
#mesg N
3.wall: send messages to all logged-in users
Command syntax:
Wall [ message ]
Example: Send "HelloWorld" to all users
#wall ' Hello World '
4.write: send a message to the user
Command syntax:
Write [ user account ] [ terminal name ]
Linux Information Exchange Command