Using the Network Interface
Executing Remote Commands
8-18
SPARCbook Portable Workstation User Guide
Executing Remote Commands
A number of commands are provided by TCP/IP which can be executed
remotely on other machines on the network, subject to permissions. The
most important of these commands are as follows:
rcp
Lets you copy files over the network between UNIX
hosts.
rlogin
Lets you log in to remote UNIX hosts over the network
on which you have an account. You may have to supply
a password if the remote system has been set up to test for
one.
rsh
Lets you execute a single command on a remote UNIX
host.
ftp
For file transfer protocol, allows you to copy files over
the network between hosts.
telnet
Allows you to log in to any reachable remote system on
which you have an account.
finger
Allows to find out information about users on remote
systems.
Copying files
The syntax for copying files with
rcp
is as follows:
% rcp [-r] [fromsys:]filename [tosys:]filename
For example, to copy the file
swdemo
from the current directory on the
local machine into the
/tmp
directory on the machine called burgundy,
you would use the following command:
% rcp swdemo burgundy:/tmp/swdemo
Note that you do not need to specify the name of the local host in the
command.
S3UG4_Book Page 18 Friday, August 8, 1997 11:37 am