Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

file rename

 

Syntax

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for OCX Series switches.

Description

Rename a file on the local router or switch.

Options

destinationNew name for the file.
sourceOriginal name of the file. For a routing matrix, the filename must include the chassis information.

Required Privilege Level

maintenance

List of Sample Output

file rename

file rename (Routing Matrix)

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

file rename

The following example lists the files in /var/tmp, renames one of the files, and then displays the list of files again to reveal the newly named file.

user@host> file list /var/tmp

user@host> file rename /var/tmp/dcd.core /var/tmp/dcd.core.990413

user@host> file list /var/tmp

file rename (Routing Matrix)

The following example lists the files in /var/tmp, renames one of the files, and then displays the list of files again to reveal the newly named file.

user@host> file list lcc0-re1:/var/tmp
user@host> file rename lcc0-re0:/var/tmp/snmpd /var/tmp/snmpd.rr user@host> file list lcc0-re1:/var/tmp