Switch 7700 Command reference Guide, v2.0

Table Of Contents
File System Management Commands 407
View
User view
Parameter
file-url: Path and name of the file you want to delete.
Description
Using the delete command, you can delete a specified file from the storage
device of the Ethernet Switch.
The deleted files are kept in the recycle bin and will not be displayed when you use
the
dir command. However they will be displayed, using the dir /all command.
The files deleted by the
delete command can be recovered with the undelete
command or deleted permanently from the recycle bin, using the
reset recycle-bin command.
Note that, if two files with the same name in a directory are deleted, only the
latest deleted file will be kept in the recycle bin.
Example
Delete the file flash:/test/test.txt
<SW7700>delete flash:/test/test.txt
Delete flash:/test/test.txt?[confirm]
dir Syntax
dir [ /all ] [ file-url ]
View
User view
Parameter
/all: Display all the files (including the deleted ones).
file-url: File or directory name to be displayed. The file-url parameter
supports “*” matching. For example, using
dir *.txt will display all the files with
the extension
txt in the current directory; By default, display the file information
in current path.
Description
Using the dir command, you can display the information about the specified file
or directory in storage device of Ethernet Switch.
Example
Display the information about the file flash:/test/test.txt
<SW7700>dir flash:/test/test.txt
Directory of flash:/test/test.txt
1 -rw- 248 Aug 29 2000 17:49:36 text.txt
20578304 bytes total (3104544 bytes free)
Display information of directory flash:/test/
<SW7700>dir flash:/test/