Device administration Manage files
Digi TransPort WR Routers User Guide 820
dir command: List the file directory
The dir command displays the file directory. For example:
dir
direct 60720 ro 11:30:41, 31 Jan 2011 CRC ???
sbios 524288 ro 11:30:43, 31 Jan 2011 CRC 6ba8
mirror 60720 ro 11:30:41, 31 Jan 2011 CRC ???
image 4300995 rw 15:22:23, 31 Jan 2011 CRC ab19
sregs.dat 4096 rw 11:30:41, 31 Jan 2011 CRC 08b2
x3prof 4096 rw 11:30:41, 31 Jan 2011 CRC bb5f
CAcert.cer 1371 rw 11:30:41, 31 Jan 2011 CRC 6764
Each line shows:
▪ The file name and extension, if any
▪ The file size, in bytes
▪ The read/write status: ro=read only; rw=read/write
▪ The time/date of creation and the CRC value
Note File write operations are carried out as a background task and can be relatively slow due to
the constraints of FLASH memory. As a result, the file directory may only be updated several
seconds after a particular file operation has been carried out.
You can also use wildcards with the dir command in order to narrow your search. The * character
can represent one or more characters in the filename. For example, dir fw*.txt will list only the
fw.txt and fwstat.txt files, if they are present on the TransPort.
flock command: Lock files
The flock command prevents any further writing to the FLASH memory. This means that no files can
be written to, added to or deleted from the filing system.
funlock command: Unlock files
The funlock command unlocks the FLASH memory if it had been locked using the flock command.
Files can then be added, deleted or copied to the filing system.
move command: Move a file
The move command replaces one file with another while retaining the original filename. The format
is:
move <fromfile> <tofile>
For example, the command:
move fw-temp.txt fw.txt
deletes the file called fw.txt and then rename the file called fw-temp.txt as fw.txt.
ren command: Rename a file
The ren command renames files in the filing system. The format is:
ren <oldfilename> <newfilename>