Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    file list

    Syntax

    file list<detail | recursive><filename>

    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

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

    Options

    none

    Display a list of all files for the current directory.

    detail | recursive

    (Optional) Display detailed output or descend recursively through the directory hierarchy, respectively.

    filename

    (Optional) Display a list of files. For a routing matrix, the filename must include the chassis information.

    Additional Information

    The default directory is the home directory of the user logged in to the router or switch. To view available directories, enter a space and then a backslash (/) after the file list command. To view files within a specific directory, include a backslash 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 (Routing Matrix)

    Output Fields

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

    Sample Output

    file list

    user@host> file list /var/tmp
    dcd.core
    rpd.core
    snmpd.core
    

    file list (Routing Matrix)

    user@host> file list lcc0-re0:var/tmp
    lcc0-re0:
    --------------------------------------------------------------------------
    /var/tmp/:
    .gdbinit
    .pccardd
    Test/
    chassisd*
    chassisd.nathan*
    check_time*
    cores/
    diagTestPrep*
    diagtest*
    diagtest.user*
    do_switchovers*
    dump_test*
    err.manoj.log
    esw_clearstats*
    esw_counter*
    esw_debug*
    esw_debug_ge*
    esw_filt_test*
    esw_filter_tnp_addr*
    esw_getstats*
    esw_phy*
    esw_stats*
    

    Modified: 2016-06-09