rcp(remote copy)
rcp(remote copy)功能说明:远端复制文件或目录。
语 法:rcp [-pr][源文件或目录][目标文件或目录] 或 rcp [-pr][源文件或目录...][目标文件]
补充说明:rcp指令用在远端复制文件或目录,如同时指定两个以上的文件或目录,且最后的目的地是一个已经存在的目录,则它灰把前面指定的所有文件或目录复制到该目录中。
参 数:
-p 保留源文件或目录的属性,包括拥有者,所属群组,权限与时间。
-r 递归处理,将指定目录下的文件与子目录一并处理。
rcp
rcp [options] file1 file2 rcp [options] file ... directory
Copy files between two machines. Each file or directory is either a remote filename of the form
Options
Use ccachefile for the credentials cache file.
Use configfile as the configuration file.
Connect to the specified port on the remote system.
Always use a network connection, even when doing a local copy. Useful for testing.
Attempt to get tickets for remote host; query krb_realmofhost to determine realm.
Preserve modification times and modes of the source files.
Request either the new (-PN) or old (-PO) version of the Kerberos rcmd protocol.
If any of the source files are directories, descend into each directory and recursively copy all files and directories within it. The destination must be a directory.
Turn on DES encryption for all data passed by rcp.