8-115
Example for File Operations
# Display the files and the subdirectories in the current directory.
<Sysname> dir
Directory of cfa0:/
0 -rw- 10944608 Jan 11 2030 23:47:54 sr6602.bin
1 drw- - Apr 26 2000 12:00:02 logfile
2 -rw- 95805 Jun 30 2007 10:00:28 startup.cfg
3 -rw- 22745844 Jun 28 2007 20:19:50 sr6608.bin
4 -rw- 2541 Jul 02 2007 13:53:16 jl.cfg
5 -rw- 10930192 Apr 26 2000 12:12:38 6602pecl.bin
6 -rw- 1827 Jan 12 2030 00:03:46 j1.cfg
506336 KB total (461312 KB free)
File system type of cfa0: FAT16
# Create a new folder called
mytest
in the logfile directory.
<Sysname> cd logfile
<Sysname> mkdir mytest
%Created dir cfa0:/logfile/mytest.
# Display the current working directory.
<Sysname> pwd
cfa0:/logfile
# Display the files and the subdirectories in the logfile directory.
<Sysname> dir
Directory of cfa0:/logfile/
0 -rw- 1250094 Jul 01 2007 16:09:50 logfile.log
1 drw- - Jan 12 2030 00:35:20 mytest
506336 KB total (461296 KB free)
File system type of cfa0: FAT16
# Return to the upper directory.
<Sysname> cd ..
# Display the current working directory.
<Sysname> pwd
cfa0:
Summary of Contents for SR6600 SPE-FWM
Page 112: ...6 101...