Performing device administration tasks Manage files
Digi TransPort® Routers User Guide
904
<filename>
The name of an existing file.
<newfilename>
The name of the new copy that will be created.
del command: Delete a file
The del command deletes files from the filing system. The format is:
del <f i l ename>
<filename>
The name of an existing file.
You can also use wild cards in the filename in order to delete several files at once. The * character can
represent one or more characters in the filename. For example, del fw*.txt will delete files fw.txt and
fwstat.txt. The del command returns OK if files have been deleted, or ERROR if no matching files have
been found.
dir command: List the file directory
The dir command displays the file directory. There are several command variants:
Command Options Equivalent web parameter
dir Displays the entire contents of the router’s flash file system.
dir <filter> Displays a filtered view of the router’s flash file system. The filter can contain
wildcards using the *.
such as
dir *.pem
to display all the files ending in .pem.
dir u: Displays the contents of an USB flash stick if inserted into the USB port of
the router.
For example:
di r
di r ect 60720 r o 11: 30: 41, 31 Jan 2011 CRC ???
sbi os 524288 r o 11: 30: 43, 31 Jan 2011 CRC 6ba8
mi r r or 60720 r o 11: 30: 41, 31 Jan 2011 CRC ???
i mage 4300995 r w 15: 22: 23, 31 Jan 2011 CRC ab19
sr egs. dat 4096 r w 11: 30: 41, 31 Jan 2011 CRC 08b2
x3pr of 4096 r w 11: 30: 41, 31 Jan 2011 CRC bb5f
CAcer t . cer 1371 r w 11: 30: 41, 31 Jan 2011 CRC 6764
Each line shows:
n The file name and extension, if any
n The file size, in bytes