DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
363
dir
34-5
Description
This command is used to list all the files located in a directory of a drive.
If pathname is not specified, then all of the files in the specified drive will be displayed. If none of
the parameters are specified, the files in the current drive will be displayed.
Format
dir {<drive_id>} {<pathname>}
Parameters
<drive_id>
- (Optional) Enter the drive ID used, for example, C:.
<pathname>
- (Optional) Enter the directory to be displayed. The path name can be specified
either as a full path name or partial name. For partial path name, it indicates the file is in the
current directory.
Restrictions
None.
Example
List the files:
DGS-3000-26TC:admin#dir
Command: dir
Directory of /c:
Idx Info Attr Size Update Time Name
--- ------- ---- -------- ------------------- ----------------
1 RUN(*) -rw- 5491536 2000/01/01 00:41:03 runtime.had
2 CFG(*) -rw- 31142 2000/01/01 02:19:40 config.cfg
3 d--- 2000/01/01 00:00:16 system
29618 KB total (24127 KB free)
(*) -with boot-up info (b) -with backup info
DGS-3000-26TC:admin#
rename
34-6
Description
This command is used to rename a file. Note that for standalone device, the unit argument is not
needed. This command is used to rename a file in the file system. The pathname Specify the file
(in path form) to be renamed and the filename Specify the new filename. If the pathname is not a
full path, then it refers to a path under the current directory for the drive. The renamed file will stay
in the same directory.
Summary of Contents for DGS-3000 series
Page 1: ......