XG Series User's Guide
5.19.4
File Operation Commands
This section explains about commands related to File Operation Commands.
5.19.4.1 dir
Function
Available Model
Syntax
Options
Use Mode
Explanation
Execution Example
Displays a list of files.
XG0224 / XG0448 / XG0440DC / XG0440DCR / XG2600
dir [<filename>]
<filename>
Specifies the name of the file or directory to be displayed. The dir command will only
display files or directories that match this parameter. If a directory is specified, the files
inside that directory will be displayed. Wildcards may be used with this option. Valid
wildcards are listed below.
• *
matches all character strings, regardless of length.
• ?
matches any single character.
• [<char>]
matches a target including any of the characters in <char>.
Operation mode (admin class)
Configuration mode (admin class)
Displays a list of files on external media.
# dir
Directory of /cf0
(2)
2011/01/15 11:55
2011/01/15 11:55
2011/01/15 11:55
2011/01/15 11:55
2011/01/15 11:55
2011/01/17 03:16
2011/01/17 01:58
# dir test/*.*
Directory of /cf0/test
2011/01/16 10:23
2011/01/17 01:58
1)
If CompactFlash /cf0, if USB memory /um0
2)
Displays file last modified date.
3)
Displays <DIR> if directory.
4)
If a regular file, displays file size in bytes.
5)
Displays file or directory name.
---(1)
(3)
(4)
(5)
1445 CONFIG2.TXT
1445 CONFIG3.TXT
1445 CONFIG4.TXT
1445 CONFIG11.TXT
1445 CONFIG1.TXT
2337531 FIRM
<DIR>
TEST
total file 6
total directory 1
3142 CONFIG2.TXT
<DIR> BKUP
total file 1
total directory 1
386
Configuration Display, Delete and Operation Commands
Chapter 5 Command Reference