Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > Junos OS > file rename
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

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.

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

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
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
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

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
lcc0-re1:
--------------------------------------------------------------------------

/var/tmp:
.pccardd
sartre.conf         
snmpd               
syslogd.core-tarball.0.tgz
user@host> file rename lcc0-re0:/var/tmp/snmpd /var/tmp/snmpd.rr user@host> file list lcc0-re1:/var/tmp
lcc0-re1:
--------------------------------------------------------------------------

/var/tmp:
.pccardd
sartre.conf         
snmpd.rr 
syslogd.core-tarball.0.tgz

Published: 2012-03-26

 
  • About Juniper
  • The New Network
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out