Professional Documents
Culture Documents
Communication in Linux
Communication in Linux
Communication in Linux
Module 5
Communication in Linux
The mesg Command
• To control whether other users can send messages
to you
• Can set a terminal mode so that other users can
start a chat session with you
• Two options available
– mesg y: other users can send messages
– mesg n: other users cannot send messages
• No parameters: displays current message
permission settings
• The root user can send messages to any computer
regardless of settings
The who –T Command
• who command used to determine users who are
currently logged in
• Gives a four-column output
• Gives names of users, name of terminal from where
they logged in, login date and time
• Provides list of online users
• Does not provide info on status of a users
willingness to receive messages
The who –T Command
• To display status use who –T command
• Gives a five-column output
• Second column provides users willingness to receive
messages
– + indicates user has allowed access
– - indicates user has not allowed access
– ? Indicates unable to determine status
The talk Command
• An interactive messaging system
• To talk or chat with another user on the network
• Copies lines from your terminal to that of another
user
• Syntax:
– talk person [ttyname]
• Example:
– talk angela
The talk Command
• Terminal name to be specified if other user has
logged in from different terminals
• To start the chat, a message is sent to the other
person
• To establish connection, other user must accept the
message that is sent
• If message is not accepted, talk will send the same
message every 30 seconds until it is accepted
• The user can cancel it by pressing <Ctrl>+C keys
The talk Command
• When the connection is established, following
message will be displayed
– [Ringing your party again]
• To accept message angela need to type
– talk angela@angelasmachine
• When connection is established terminal window
divided into two screens
– Upper half: text that we type
– Lower half: text typed by the correspondent
• Connection closed by pressing <Ctrl>+C
The write utility
• To send a message on another users terminal
• Syntax:
– write user_name [terminal_name]
• Example:
– write angela
• These messages displayed only if mesg y is set at the
other user end
The write Utility
• If mesg n is set, write dispalys the following
message:
– write: Angela has messages disabled
• If other user is not logged on write displays
following message:
– write: Angela is not logged in
• If user logged in from different terminals, message
sent to terminal with highest accumulated time
• To enable two-way communication, mesg y to be set
at both ends
The wall Utility
• To send messages to all users connected
• To all currently logged in users with mesg y
• Syntax:
– wall <message>
• When no parameter given, accepts input from
keyboard
• Can type multiple lines
• Terminated by <Ctrl>+C
The finger Utility
• To display status of all currently logged in users
• Syntax:
– finger [options] [username]
• Displays user’s login name, full name, terminal name,
write status, idle time, login time, logged in machine
address and office phone number
• Without any parameters, displays single line output
for all users
• Write permission displayed with the terminal name
as an asterisk
– If asterisk comes after terminal name, write permission is
denied
The finger Utility
• Also used to display specific info about individual
users
• Specify login name of user with finger utility
• Example: finger steve
• Additional info displayed:
– Users home directory
– Home phone number
– Login shell
– Mail status
– Contents of the files .plan, .project and .forward
Options with finger Utility
Option Meaning
-u To display help
Format
<user login name>@<hostname>
Example: pine, elm, mail, netscape etc
Example:
angelasmith@linuxmac.com
STORING
RECIPIENT DETAILS
/var/spool/mail/username
~/mail
~/.addressbook
~/.addressbook.lu
~/.pine-debug[1-4]
~/.newsrc
~/.signature
~/.mailcap
/etc/pine.conf
~/.pinerc
THE PINE OPENING
SCREEN
MAIN MENU OF
PINE
COMMANDS AT
THE OPENING
MENU
Command Meaning Usage
? Help Gives detailed help
C Compose Message Compose/draft a message
I Message Index Displays messages in current folder
L Folder List Selects a folder to view
A Address Book Stores email addresses of people
S Setup Used to configure pine options
R Release Notes Displays release notes of pine
K Keyboard Lock Locks keyboard using password
COMMANDS
AVAILABLE IN
SETUP SCREEN
Command Meaning Usage
P Printer Configures printer
N New password To modify current password
C Configure Helps to configure mail services
S Signature Helps to set your signature here
A Address Books Stores emailids
L Collection List To create/delete folders
R Roles To create and modify roles
? Help Detailed help
OPTIONS
AVAILABLE WITH
PINE COMMAND
Option Meaning
<address list> Displays compose screen addressed to to the
given email address
-attach <file> Displays compose screen with specified file
attached
-attachlist <filelist> Sends multiple files as attachments
-attach_and_delete Displays compose screen, attaches file and
<file> deletes it when finished
-f <folder> Specifies folder name to be opened with pine
-l <keystrokes> Specifies first set of keystrokes after opening
pine
-F <file> Opens specified file to view