Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

file list

 

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

Display a list of files on the local router or switch.

Options

noneDisplay a list of files in the default directory. The default directory is the home directory of the user logged in to the router or switch.
detail(Optional) Display detailed information about the files. The output is similar to what is displayed by the Linux ls -l command.
recursive(Optional) Display detailed information about the files in the directory and all subdirectories below it.
path(Optional) List the files in a specified directory path. The path name cannot contain any special characters (![ =;|(){}]).

Additional Information

To view available directories, enter a space and then a slash (/) after the file list command. To view files within a specific directory, include a slash followed by the directory and, optionally, subdirectory name after the file list command.

Required Privilege Level

maintenance

List of Sample Output

file list

file list (detailed)

file list (recursive)

Sample Output

file list

The following command lists the contents of the /var/tmp directory.

user@host> file list /var/tmp

file list (detailed)

The following command lists detailed information about the contents of the /var/tmp directory.

user@host> file list /var/tmp detail

file list (recursive)

The following command lists detailed information about the contents of the /var/tmp directory and all subdirectories below it.

user@host> file list /var/tmp recursive