Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

file

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
file <archive | change-owner | change-permission | checksum | compare | compress | copy | delete | delete-directory | link | list | make-directory | routing-instance | rename | show | staging-directory directory-location>
<source-address source-address>

Description

Archive files from the device, copy files to and from the router or switch, calculate the file checksum, compare files, delete a file from the device, list files on the device, rename a file, show file contents, or show the local address to initiate a connection.

Options

archive (Optional)

Archive, and optionally compress, one or multiple local system files as a single file, locally or at a remote location.

change-owner (Optional)

Change owner of file.

change-permission (Optional)

Change permission of file.

checksum (Optional)

Calculate the Message Digest 5 (MD5) checksum of a file.

compare (Optional)

Compare two local files and describe the differences between them in default, context, or unified output styles.

Compress (Optional) file compress.
copy (Optional)

Copy files from one place to another on the local device or between the local device and a remote system.

delete (Optional)

Delete a file on the local device.

delete-directory (Optional) Delete a directory.
link (Optional) Create link between files.
list (Optional)

Display a list of files on the local device.

make-directory (Optional) Create a new directory.
rename (Optional)

Rename a file on the local device.

routing-instance (Optional) Name of routing instance for host attempt.
show (Optional)

Display the contents of a file.

source-address (Optional)

Specify the source address of the local file.

staging-directory (Optional) Staging directory on Routing Engine.

Required Privilege Level

maintenance

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation