dir

Lists files on a device's file system

Supported in the following platforms:

Syntax

dir {/all|/recursive|<DIR>|all-filesystems}

Parameters

dir {/all|/recursive|<DIR>|all-filesystems}

/all

Optional. Lists all files

/recursive

Optional. Lists files recursively

<DIR>

Optional. Lists files in the named file path

all-filesystems

Optional. Lists files on all file systems

Examples

nx9500-6C8809#dir flash:/
Directory of flash:/

  -rw-   62937     Tue Nov 24 16:00:06 2015   run-config-backup.txt
  drwx             Tue Nov 29 09:48:42 2016   crashinfo
  drwx             Sat Sep 17 05:14:43 2016   upgrade
  drwx             Mon Sep 28 09:48:33 2015   tmptpd
  drwx             Wed Feb 15 11:53:07 2017   log
  drwx             Wed Feb 15 11:02:55 2017   archived_logs
  drwx             Tue May 24 22:23:54 2016   cache
  drwx             Thu Feb 19 08:53:45 2015   floorplans
  -rw-   42018304  Tue Sep 27 10:19:24 2016   in.tar
  drwx             Tue Jan 17 10:02:01 2017   hotspot

nx9500-6C8809#
nx9500-6C8809#dir all-filesystems
Directory of flash:/

  -rw-   62937     Tue Nov 24 16:00:06 2015   run-config-backup.txt
  drwx             Tue Nov 29 09:48:42 2016   crashinfo
  drwx             Sat Sep 17 05:14:43 2016   upgrade
  drwx             Mon Sep 28 09:48:33 2015   tmptpd
  drwx             Wed Feb 15 11:53:07 2017   log
  drwx             Wed Feb 15 11:02:55 2017   archived_logs
  drwx             Tue May 24 22:23:54 2016   cache
  drwx             Thu Feb 19 08:53:45 2015   floorplans
  -rw-   42018304  Tue Sep 27 10:19:24 2016   in.tar
  drwx             Tue Jan 17 10:02:01 2017   hotspot

Directory of nvram:/

  lrwx   29        Tue Oct 27 16:22:21 2015   sensor_default_scan

--More--
nx9500-6C8809#