17
Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

Embed Size (px)

Citation preview

Page 1: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

Introduction to Linux

Instructor: Bennett M. TanyagPART – 2Unit 2

Page 2: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

UNIX COMMUNICATIONS

COMMUNICATING WITH OTHER USERS IN A UNIX SYSTEM

In a multi-user system like UNIX, it is possible for a particular user to communicate with other users within the system.

Page 3: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

In fact, sending messages electronically is a more efficient alternative to traditional means of communication such as the telephone and memos.

UNIX COMMUNICATIONS

Page 4: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

UNIX has four different facilities for communication among users:

1. The xsend and xget Commands

2. The mail Command

2. The write Command

3. The talk Command

UNIX COMMUNICATIONS

Page 5: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

ELECTRONIC MAIL

One tool in UNIX that can facilitate communications among users is the electronic mail. A user can electronically send messages to other users in the system (whether the users concerned are logged-in or not).

Page 6: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

In a multi-computer environment (such as the Internet), users may even send messages to users of other computers. Electronic mail is faster than written memos and more efficient than making telephone call in the sense that the user does not have to be physically in his office in order for someone to send him a message.

ELECTRONIC MAIL

Page 7: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

The major requirements for this to work properly are that the intended recipient of the message is a recognized user of the UNIX system and that he uses the system regularly (a user cannot read his messages if he does not log-in regularly).

ELECTRONIC MAIL

Page 8: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

CONFIDENTIAL ELECTRONIC MAIL All users who intend to send (and receive)

private or confidential electronic mail should first execute the enroll command. This is done by typing enroll at the UNIX prompt followed by the Enter key:

$ enrollEnter encryption key:

Page 9: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

UNIX will require the user to enter an encryption key. This is the user's password for the private electronic mail facility. Before a user can read his confidential messages, UNIX will again ask for this encryption key. Without this, UNIX users cannot read their private messages.

Like the UNIX password, the encryption key is not echoed back (printed on the screen) to the user as he is typing it.

CONFIDENTIAL ELECTRONIC MAIL

Page 10: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

In sending confidential electronic mail, the user should use the xsend command.

Format :xsend user_name

Where:xsend is the name of the command to send confidential

electronic mail user_name is the user or account name of the intended

recipient of the message

CONFIDENTIAL ELECTRONIC MAIL

Page 11: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

After typing xsend, the sender may now proceed in entering the text of the message. Once the user finishes typing, he should then press Control-D to send message.

Example:$ xsend LinusDear Linus,

Hi Sir Linus, I have already sent you a detailed report on our sales.Please send me a note if you have comments on my report.

Thank you very much, Bill Gates

^D$ _

CONFIDENTIAL ELECTRONIC MAIL

Page 12: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

When the recipient logs-in into the system, the user will be prompt that he/she has a new email.

Notice the [YOU HAVE NEW MAIL] message before the prompt. This tells the user that he has a pending mail.

CONFIDENTIAL ELECTRONIC MAIL

Page 13: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

In order for the recipient to read his private mail, he should execute the xget command. After typing xget, UNIX will ask for the encryption key.

After typing the encryption key, the message is displayed together with pertinent information such as the user name of the sender, the date and the time the message was sent.

CONFIDENTIAL ELECTRONIC MAIL

Page 14: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

Example : $ xgetEnter encryption key : From Bill Gates Sat Oct 25 09:08:34 2003Dear Linus,

Hi Sir Linus, I have already sent you a detailed report on our sales.Please send me a note if you have comments on my report.

Thank you very much, Bill Gates

?

CONFIDENTIAL ELECTRONIC MAIL

Page 15: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

Notice also that UNIX displays a question mark “?” after the message. This is the xget prompt. Whenever the user sees this prompt, he can type in commands related to the private electronic mail facility.

To get a list of commands available, simply type h (help) at the ? prompt followed by Enter key.

CONFIDENTIAL ELECTRONIC MAIL

Page 16: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

? hCommands are:q quit leaving unread languagen delete current message, display nextd same as aboveCR same as above! execute shell commandss save message in named file or mboxw same as above? print this list

CONFIDENTIAL ELECTRONIC MAIL

Page 17: Introduction to Linux Instructor: Bennett M. Tanyag PART – 2 Unit 2

If the user wants to save the current private mail, he should type s or w to save the message in a file called mbox located in his home directory (/home/Linus). If the user wants to save the current mail to a different file, then he should type s or w followed by the filename:

? s message.from.Gates$ _

CONFIDENTIAL ELECTRONIC MAIL