Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Copying a File

    You can use the copy command to copy a file from one location to another. In the copy command, you can specify the following:

    • A network path to copy to or from another device on the network.
    • An incoming or outgoing directory to copy to or from the user space.
    • A subdirectory name to create a subdirectory within the incoming or outgoing directory in the user space.

    Note:

    • You cannot use wildcards.
    • You cannot create or copy over files generated by the system; however, you can copy such files to an unreserved filename.
    • You cannot copy script (.scr) or macro (.mac) files while in Boot mode. You can copy only .cnf, .hty, and .rel files. If you issue the dir command from Boot mode, existing .scr and .mac files are not displayed. For more information about the types of files that you can copy, see Types of Files Transferred Using the copy Command.

    To copy a file from one location to another:

    • Issue the copy command in Privileged Exec mode.
      • Copy the contents of the source file to the existing or newly created file within same network host.
        host1#copy host1:westford.cnf boston.cnf
      • Copy a file from the incoming directory.
        host1#copy /incoming/releases/2-8-0a3-7.rel 2-8-0a3-7.rel
      • Copy a local file to a remote file.
        host1#copy /shconfig.txt ftp://joe:passwd@173.28.32.156/ftpDir/results/shConfigJoe.txt

    Published: 2014-08-12