In effect. The examples on the second line, above, demonstrate the user of absolute and abbreviated pathnames after a remote login. There is no difference for the abbreviated pathname, but because the remote login operation mounted the jones home directory onto the local system parallel to the local user's home directory , the absolute pathname no longer requires the system name mars.
For more information about how a remote login operation mounts another user's home directory, see "What Happens After You Log In Remotely". The table below provides a sample of absolute and abbreviated pathnames recognized by the C shell. It uses the following terminology:.
Working directory - The directory from which the rcp command is entered. Can be remote or local. Current user - The user name under which the rcp command is entered. Be sure you have permission to copy. You should at least have read permission on the source system and write permission on the target system. If you don't know the path of the source or target, you can first log into the remote system with the rlogin command, as described in "How to Log In to a Remote System rlogin ".
Then, navigate through the remote system until you find the location. You can then perform the next step without logging out.
For example, to copy the file Index. To transfer a whole directory, which includes all of the directory contents and subdirectories, add the -r command line option to the command. For additional information about preparing to move data for a migration from UNIX to Windows, click the article number below to view the article in the Microsoft Knowledge Base:. Windows More Need more help? Expand your skills. Get new features first.
A subscription to help make the most of your time. For up to 6 people. Premium apps. If path is not a full path name, it is interpreted relative to the HOME directory of the specified user rname on rhost. The local user name that is, the name you are currently logged in as including either your domain name or your machine name if you are not a domain user is used as rname if no other remote user name is specified.
Note: rcp uses the colon : to separate the host name and path name which can create problems when you want to specify local file names which contain a colon following a drive letter. As a result, when a file argument on the command line is of the x : path that is, a single letter followed by a colon and a path name , rcp treats the argument as path on drive x of the local system as opposed to path on a host named x. The rsh reference page provides additional information on how rsh communicates with a rshd service or daemon to execute commands remotely.
If an attempted rcp connection to the host fails because of an error matching " permission. In this example, the rcp operation is run after the rlogin command is executed to copy a file from a remote to a local system. Although the flow of the operation is the same as that of the previous example, the paths change to allow for the remote login:.
Because of the remote login, the symbol would simply refer to the remote system; essentially directing rcp to create a duplicate file. In this example, rcp is used to copy the file notice. Because no remote file name is provided, the file notice.
0コメント