Operation Manual

File Management Commands
Mobility System Software Command Reference Guide
Version 7.3
21 – 488
Examples
The following commands copy file testconfig to a TFTP server and delete the file from
nonvolatile storage:
MX# copy testconfig tftp://10.1.1.1/testconfig
success: sent 365 bytes in 0.401 seconds [ 910 bytes/sec]
MX# delete testconfig
success: file deleted.
Examples
The following command deletes file dang_doc from subdirectory dang:
MX# delete dang/dang_doc
success: file deleted.
See Also
copy on page 485
dir on page 488
dir
Displays a list of the files in nonvolatile storage and temporary files.
Syntax
dir [subdirname] | [file:] | [core:] | [boot0:] | [boot1:]
Defaults
None.
Access
Enabled.
History
Examples
The following command displays the files in the root directory:
MX# dir
===============================================================================
file:
Filename Size Created
file:configuration 48 KB Jul 12 2005, 15:02:32
file:corp2:corp2cnfig 17 KB Mar 14 2005, 22:20:04
corp_a/ 512 bytes May 21 2004, 19:15:48
file:dangcfg 14 KB Mar 14 2005, 22:20:04
old/ 512 bytes May 16 2004, 17:23:44
file:pubsconfig-april062005 40 KB May 09 2005, 21:08:30
subdirname Subdirectory name. If you specify a subdirectory name, the command lists the files in
that subdirectory. Otherwise, the command lists the files in the root directory and
also lists the subdirectories.
file: Limits dir output to the contents of the user files area
core: Limits dir output to the contents of the /tmp/core subdirectory
boot0: Limits dir output to the contents of the boot0 partition
boot1: Limits dir output to the contents of the boot1 partition
Version 1.0 Command introduced
Version 1.1 Enhanced to list the image files in the boot partitions and indicate the partition that
was used to load the currently running image
Version 3.0 subdirectory option added, to list the files in the specified subdirectory
Version 4.1 core:, file:, boot0:, and boot1: options added, to limit the output to the specified
category