beautypg.com

Example for file operations – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 246

background image

231

To do…

Use the command…

Remarks

Set the operation prompt mode of
the file system

file prompt { alert | quiet }

Optional
The default is alert.

Example for file operations

# Display the files and the subdirectories in the current directory.

Directory of cfa0:/
0 -rw- 829 Apr 26 2000 12:00:00 system.xml
1 drw- - Apr 26 2000 12:00:06 logfile
2 -rw- 7998880 Apr 26 2000 12:23:08 secblade-ns.bin
3 -rw- 1013 Apr 26 2000 12:01:58 startup.cfg
4 -rw- 524288 Apr 26 2000 16:45:54 basbtm.bin
5 -rw- 524288 Apr 26 2000 16:45:56 extbtm.bin
6 -rw- 91576 Apr 26 2000 13:18:06 default.diag
7 -rw- 89939 Apr 26 2000 12:33:10 devault.diag
71423 KB total (62402 KB free)
File system type of cfa0: FAT32

# Create new folder mytest in the test directory.

cd test
mkdir mytest
%Created dir cfa0:/test/mytest.

# Display the current working directory.

pwd
cfa0:/test

# Display the files and the subdirectories in the test directory.

dir
Directory of cfa0:/test/

0 drw- - Feb 16 2006 15:28:14 mytest

2540 KB total (2519 KB free)

# Return to the upper directory.

cd ..

# Display the current working directory.

pwd
cfa0: