Вы находитесь на странице: 1из 4

Communication : commands

Used to connect to another gost,

To transfer files between host computers and so on without logging into a user
session at the remote system

Cu : allows u to connect to another host computer, either directly or indirectly.

i.e. if u are currently on host1 and u use Cu to connect to host2 ,u can connect to host3
than host2, so that u are connected directly to host2 and indirectly to host3

host1 -> host2 -> host3

-d print diagnostic messages

-lLine outside the default device to be used for communication

-n prompt for the telephone no rather than accepting it as part of the


command line

-sspeed specify the speed (in bounds) of the line to be used for communication
between hosts.

-Tseconds specify the length of time unix will try to connect to the remote host.

- Once you are able to successfully log into the remote host, u can use
Several subcommands.

- Remember to prefix the ~ with a \ so that unix does not apply special meaning to –

~. - Disconnect from the remote host.

~! - Disconnect from the remote host.

~!command - Execute command at the local host.

~%cd dir - Change the directory on the local host to the specified

directory.

~$command - Run, on the local system

the command denoted by the command vari and send the


commands qp to the remote system for execution.

cu remote2

lu –s 2400 –l tty1

- To execute the ls command on the local system, execute the following command ;
o ~!ls

FTP :-

To transfer files between 2 host computers

ftp otherhost

open otherhost

get filename

put filename

close

bye or quit

mailx

- u can send mail to other users in the system and receive mail from them by using the
mailx commands.
- It also provides subcommands to facilitate saving,deleting and responding to messages.
- Also provides facilities to compose and edit messages before finally sending it to one or
more users.
- Unix uses mailboxes to receive mail for a user.
- Each user has a system mailbox in which all mail for that useris received pending action
by the user.
- The user can read, save and delete the mail after the mail is received.
- The default secondary mailbox is called the mbox. It is usually present in the home dir.
of the user.

Ex :-

Mailx

mail > prompt from which u can use the subcommands.

mail –f - To see the mail.

now use on friend1 to create & send mail to other users

- terminated by ctrl – d

Talk :-

- U can converse with another user in real time using the talk command if

the other user is logged on.

- Take one mandatory argument :


o The username or user and hostname.
U can Optionally provide a second arg. That specifies the TTY onto which the user is logged.

- The user on the remote host can be specified in one of the following formats.
o username@host
o host!username
o host.username
o host;username
when u execute the talk command, it opens 2 windows,
- One for sending messages and
- One for receiving messages
The command waits for the other user to respond.

Ex :-

talk friend To quit the talk session, press ctrl + c

talk testuser@host1

Vacation :-

If u want to notify a mail sender that u are on vacation, u can use the vacation command.

- We can customized message in a file called .vacation.msg in your home directory.

- If this file does not exist, a system default message is send.

Before u go on vacation, use the following command to initialize the .vacation.dir and
.vacation.peg files in your home directory

Vacation –I

This should be followed by the creation of the .forward & .vacation.msg files.

Write :-

We can use the write command to hold a conversation with another user in the local host or
remote host, just as u can with the talk command.

- To hold a conversation with another user, the following must be true.


o The user must be logged on.
o The user must not have denied permission by using the mesg command.
- A message consists of all the characters u type until u press “Enter “ key.
- To end the conversation Press ctrl – d.

Вам также может понравиться