TCP / IP network communications package using remote access orders, these orders are the first for UC Berkely development of the Arpanet. It allows you to another remote registration system, and copying files from one system to another system. You can obtain the information on a system, for example, who is currently registered for use. Calling the address of a system, the use of these long-range order domain names or IP addresses. And TCP / IP remote access to the same order, domain addresses is a good start for the Arpanet in the design and use.
Many TCP / IP can be ordered on the Internet and used in the network communications functions compared. For example, using TCP / IP can be ordered rlogin registered to a remote system, and telnet similar. Rcp command to remote replication document, the implementation of the same functionality and ftp. TCP / IP orders difference is they provide users easy-to-use and easy to control. You can easily access different Unix or Linux system in the account, and would be able to control access to this account but did not provide password users. In fact you can provide to different users on your account a set of permissions.
First, the TCP / IP network: rwho, uptime and ping
These commands are some TCP / IP orders, and through them, you can network the different systems on access to information. You can find who is registered by another system user, or information on whether a system is running. For example, rwho command and who is very similar to the function of command. It shows in the network of each system's current registered users.
$ Rwho
Violet robert: tty1 Sept 10 1034
Garnet chris: tty2 Sept 10 9:22
Ruptime command in the network can display information for each system. This information will show how each system implementation. Ruptime display system is running, how long has it running, the system of users and systems in the last 5, 10 and 15 minutes in the system load.
$ Ruptime
Violet up 11 +04:10, 8 users, load 1.20 1.10
Garnet up 11 +04:10, 20 users, load 1.50 1.30
Order ping can detect whether the system up and running. Ping command you want to add a detection system as a parameter, the following examples will test violet whether to activate and connected in the network.
$ Ping violet
Violet is alive
$
If you want to test the system has been shut down, the following will be a response. Under such circumstances, garnet is closed and is not connected to the network.
$ Ping garnet
No answer from garnet
$
Second, remote access:. Rhosts
Can you. Rhosts document control using TCP / IP in order to access your account. Users can use the standard as Vi editor to create them in the account. Rhosts file. It must be in the user's home directory. The following example, users of file. Rhosts the contents of the documents.
$ Cat.rhosts
Garnet chris
Ciolet robert
Use. Rhosts file allows users is not to provide a password and access to your system simple method. If users need to prohibit this visit only briefly from the document. Rhost delete the system and users were registered. If a user's name and registration systems were in the document. Rhost, then the user is not spent directly provide password access system. Not all of the Remote Registry operations are needed to form (you can enter password approach to alternative), but some long-range order requirements. Rhosts file, as remote replication documents or remote execution of Linux command. If you want a remote system account in honor of these orders, this account. Rhosts file must have your name and system of registration.
Through. Rhosts visit to a system, it allows you to use the TCP / IP system in order direct access to your other accounts. You do not need to register to these account. The system can be in your other accounts as the expansion of the current account registered. Diao regardless of the licensing document which accounts, are able to order from a catalog frcp copied to another directory. Ordered rsh, in your other accounts in the hospitality any Linux command.
Third, Remote Registry: rlogin
You may be in the network of different systems have their own account, or have access to others in another account on the system. To access other accounts in the system, we must first registered to your system, and then through the network registered to the account of the remote system. Rlogin can be ordered with other remote registration system. Orders should be the parameters of a system. Orders will you connect to another system and begin the process of registration.
Rlogin with the registration process and the general registration process is different from that used when users do not rlogin be prompted for name registration. Rlogin suppose you have a local system of registration and remote systems were identical. Therefore, the implementation of rlogin order as above, you will immediately be prompted for password. Input password, you can access the remote system account.
Rlogin registered with the same assumptions, because the majority of people use rlogin visit other system of registration of general and local registered are the same. However, when the remote system and the registration of the local system is not at the same time, options 1 - remote system allows you to enter different accounts were registered. Syntax is as follows:
- $ Rlogin system login name -1-name
In the example below, users were registered robert registered to the violet system.
$ Rlogin violet-1 robert
Password
$
: Once registered to the remote system, you can implement any order. Can be used exit, logout or CTRL-d (TCSH or C-shell) end connectivity.
Fourth, remote replication documents: rcp
Can you rcp command from the remote system to copy the files to the local system. Rcp implementation of the file transfer function, and its operations and cp command is very similar, but it is connected to the network through another system. Executive Order rcp requested remote system. Rhosts file in your local system of registration and all. Use keywords rcp command rcp beginning, parameters and copy the source files of the target file. In order to the remote system specified in the document, you need the file name in place a system of the former between separated by colons, as follows:
$ Rcp system-name: source-file slystem-name: copy-file
When copying a file to the remote system, the objective of the paper is reproduced remote files, it requires a system with. The source files in your local system, the system does not require:
$ Rcp source-file remote-system-name: copy-file
In the example below, users from their own weather system copying files to the remote system violet both named as monday.
$ Rcp weather violet: Monday
From the remote system in a document to a local copy, the source document is remote files, it requires a system with. Copying the goal of this document on your computer system, does not require system:
$ Rcp remote-system-name: source-file copy-file
In the example below, users from remote systems copy the entire directory. Rcp command with - r option will be a reproduction of a system directory and its subdirectories to another system. Like cp command, rcp calls for a directory and copy the source directory. In the remote system in the directory of system requirements and a system to separate the name and directory name of the colon, as well as a directory name. When copying from the directory of your system to a remote system, the remote system directory in the replication needs of remote systems.
$ Rcp-r source-directory remote-system-name: copy-directory
In the example below, the user directory of letters copied to the remote system oldnotes violet in the directory.
$ Rcp-r letters violetldnotes
When copying your system from a remote system in the local directory, in the remote system in the source directory needs of remote systems.
$ Rcp-r remote-system-name: source directory copy-directory -
In the example below, the remote system users in the directory birthdays violet copied to the party in the local directory.
$ Rcp-r violet: birthdays party
At the same time, you can use an asterisk designated name, or dots cited the current directory. Shell for the special characters from your local system to explain conversion, rather than the remote system. In order to convert a remote system to explain specific characters, you must use a certain way-into it. To copy the remote system with all kinds of extension. C files to your system, you need to use special characters - asterisk: *. c to specify all the zone extension. C document. You must pay attention to invoke an asterisk in the way. The following example, in the violet system in the zone. Extension of the c file is copied to the user's system. Note that asterisk is used by a backslash. And the final dots that the current directory is not cited. It is up to you to explain the local system and conversion.
$ Rcp violet: \ *. c
In the following example, the directory report from the local system users copied to the remote system in the current directory. Attention to the dots been invoked, which will be explained remote system conversion.
$ Rcp-r reports violet: \.
5, remote execution: rsh
You may need in the implementation of a remote system in order. Rsh command in the remote Linux system will be implemented on a command and displays the result to your system. Of course, your system name and must be registered in the name of the remote system. Rhosts file, there are two general orders rsh the parameters of a system and a Linux command. Syntax is as follows:
$ Rsh remote-sytem-neame Linux-command
In the example below, rsh remote system in order to carry out a violet ls command to set out in the violet in the directory / home / robert in the document.
$ Rsh violet ls / home / robert
Unless references to specific characters, it will be the Lee explained conversion system, to control the standard output particularly special characters, such as pipelines or redirect characters. Below the cases listed in the files on remote systems, and to transform them in the system to standard output. Redirect operation from the local system explanation, and the organization turned to the local system output in the document in the myfiles.
$ Rsh violet ls / home / robert> myfiles
If you use a specific character, it will become part of the Linux command remote system explained. Operators will use redirection in the remote system allows you to redirect operation in the implementation. The following example, use a redirection operators. It became a part of Linux orders, including the order parameters, the file name myfile. Ls command have a file name and redirect them to the remote system in a document myfile.
$ Rsh violet ls / home / robert '>' myfiles
The same is true for the pipeline operation. Below the first example of a command output to a local paper in the printer. Standard output to the export pipeline to your online printers. The second order, a document will be output on the remote system printer. Pipe lines were remote system explained. Transmission standard output to the remote system printer.
$ Rsh violet ls / home / robertlpr
$ Rsh violet ls / home / robert''lpt |