file rename
Syntax
file rename source destination
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Rename a file on the local router or switch.
Options
destination
—New name for the file.
source
—Original 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 on page 735
file rename (Routing Matrix) on page 736
Output Fields
When you enter this command, you are provided feedback on the status of your request.
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.
file rename
user@host>
file list /var/tmp
dcd.core
rpd.core
snmpd.core
user@host>
file rename /var/tmp/dcd.core /var/tmp/dcd.core.990413
user@host>
file list /var/tmp
dcd.core.990413
rpd.core
snmpd.core
735
Copyright © 2010, Juniper Networks, Inc.
Chapter 42: Operational Mode Commands for System Monitoring
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...