User`s guide
433
MOVE Move File
The move command is used to replace one file with another whilst retaining the original
filename. The format is:
move <fromfile> <tofile>
For example, the command:
move fw-temp.txt fw.txt
will delete the file called “fw.txt” and then rename the file called “fw-temp.txt” as “fw.txt”.
REN Rename File
The ren command is used to rename files in the filing system. The format is:
ren <oldfilename> <newfilename>
SCAN/SCANR Scan File System
The scan command performs a diagnostic check on the file system and reports any errors
that are found. For example:
scan
Please wait...
direct ....ok
sbios ....ok
mirror ....ok
image ....ok, data ok
sregs.dat ....ok
x3prof ....ok
CAcert.cer ....ok
The scanning process may take several seconds so you should not enter any other
commands until the results are listed.
The
scanr command works in a similar fashion, except that it will return ERROR if any file
is in error. This is useful when used with scripts that can look for the ERROR failure result.
TYPE Display Text File
The type command is used to display the contents of a text file. The format is:
type <filename>
For example:
type config.da0
[CFG]
config last_saved "12:04:45, 31 Jan 2011"
config last_saved_changes "1"
config last_saved_user "ASY 0"
eth 0 descr "LAN 0"
eth 0 IPaddr "10.1.51.3"
eth 0 mask "255.255.0.0"
eth 0 bridge ON
eth 1 descr "LAN 1"
eth 2 descr "LAN 2"
eth 3 descr "LAN 3"
eth 4 descr "ATM PVC 0"