The format operation leads to the loss of all files, including the configuration files, on the Flash memory
and is irretrievable.
Prompt Mode Configuration
Y
pt mode of
system to
alert
or
iet
. In alert mode, the file system
will give a prompt for confirmation if you execute a command which may cause data loss, for example,
d
q
.
F
to set the prompt mode of file system:
ou can set the prom
the current file
qu
eleting or overwriting a file. In
ollow these steps
uiet mode, such prompt will not be displayed
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the prompt mode
Required
the prompt mode of the
file system is
alert
.
of the file system
file prompt
{
alert
|
quiet
}
By default,
File S
l unit.
02 2000 00:47:38 serverkey
r 02 2000 00:06:57 song.cfg
1r1.bin
ate-data.txt
-with main attribute (b) -with backup attribute
cfg
as the name of the new file.
:/config.cfg flash:/test/1.cfg
to unit1>flash:/test/1.cfg?[Y/N]:y
g...Done.
ystem Configuration Examples
# Display all the files in the root directory of the file system on the loca
<Sysname> dir /all
Directory of unit1>flash:/
1 (*) -rw- 5822215 Jan 01 1970 00:07:03 test.bin
2 -rwh 4 Apr 01 2000 23:55:49 snmpboots
3 -rwh 428 Apr 02 2000 00:47:30 hostkey
4 -rwh 572 Apr
5 -rw- 1220 Ap
6 -rw- 26103 Jan 01 1970 00:04:34 testv
:53 priv
7 -rwh 88 Apr 01 2000 23:55
8 (*) -rw- 1376 Apr 02 2000 01:56:28 config.cfg
7239 KB total (2634 KB free)
(*)
(*b) -with both main and backup attribute
# Copy the file
flash:/config.cfg
to
flash:/test/
, with
1.
<Sysname> copy flash
Copy unit1>flash:/config.cfg
..
%Copy file unit1>flash:/config.cfg to unit1>flash:/test/1.cf
# Display the file information after the copy operation.
<Sysname> dir /all
56-4