Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

rename - Rename remote files

&pagelevel(4)&pagelevel

The rename command changes the name of a file on the remote host.

rename

<remote-file1> <remote-file2>


<remote-file1>

Old name of the file.

<remote-file2>

New name of the file.
Any existing file is generally overwritten, but not in the DMS directory.


Example

The remote host is a Unix host.

  1. Query the name of the remote working directory.

    pwd
    257 "/usr/tcptest/man/sam/to.bs2000" is current directory.
    
  2. Rename the remote file anton to zwaton.

    rename anton zwaton 
    350 File exists, ready for destination name
    250 RNTO command successful.