rename

Renames a file in the devices' file system

Supported on the following devices:

Syntax

rename <OLD-FILE-NAME> <NEW-FILE-NAME>

Parameters

rename <OLD-FILE-NAME> <NEW-FILE-NAME>

<OLD-FILE-NAME>

Specify the file to rename.

<NEW-FILE-NAME>

Specify the new file name.

Examples

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

  drwx             Mon Jul  1 14:22:27 2019   compliance_log
  drwx             Thu Sep 27 07:10:45 2018   tmptpd
  drwx             Thu Sep 27 07:10:45 2018   floorplans
  drwx             Mon Mar  4 12:07:23 2019   crashinfo
  drwx             Wed Feb 27 13:42:52 2019   test
  drwx             Thu Sep 27 07:11:07 2018   hotspot
  drwx             Thu Sep 27 07:10:45 2018   cache
  drwx             Mon Jul  1 14:23:01 2019   archived_logs
  drwx             Thu Jul 18 18:39:16 2019   log
  drwx             Thu Sep 27 07:10:45 2018   upgrade

nx9500-6C8809#
nx9500-6C8809#rename flash:/test/ Final
nx9500-6C8809#dir
Directory of flash:/.

  drwx             Wed Feb 27 13:42:52 2019   Final
  drwx             Mon Jul  1 14:22:27 2019   compliance_log
  drwx             Thu Sep 27 07:10:45 2018   tmptpd
  drwx             Thu Sep 27 07:10:45 2018   floorplans
  drwx             Mon Mar  4 12:07:23 2019   crashinfo
  drwx             Thu Sep 27 07:11:07 2018   hotspot
  drwx             Thu Sep 27 07:10:45 2018   cache
  drwx             Mon Jul  1 14:23:01 2019   archived_logs
  drwx             Thu Jul 18 18:39:16 2019   log
  drwx             Thu Sep 27 07:10:45 2018   upgrade

nx9500-6C8809#