[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 2

dosdir Command

Purpose

Lists the directory for DOS files.

Syntax

dosdir [  -l [  -e ] ] [  -a ] [  -d ] [  -t ] [  -v ] [  -D Device ] [ File ... Directory ... ]

Description

The dosdir command displays information about the specified DOS files or directories. If you specify a directory without also specifying the -d flag, the dosdir command displays information about the files in that directory.

DOS file-naming conventions are used with one exception. Since the \ (backslash) character can have special meaning to the operating system, use a / (slash) character as the delimiter to specify subdirectory names in a DOS path name. The dosdir command converts lowercase characters in the file or directory name to uppercase before it checks the disk. Because all file names are assumed to be full (not relative) path names, you need not add the initial / (slash).

Flags

-a Writes information about all files. This includes hidden and system files as well as the . (dot) and .. (dot-dot) files.
-d Treats the File value as a file, even if a directory is specified. When a directory is specified with the Directory parameter, information about the directory itself is listed instead of information about the files it contains.
-DDevice Specifies the name of the DOS device as /dev/fd0 or /dev/fd1. The default device is /dev/fd0.
-e Uses the -l flag to write the list of clusters allocated to the file.
-l Produces a list of clusters that includes the creation date, size in bytes, and attributes of the file. The size of a subdirectory is specified as 0 bytes. The attributes have the following meanings:
A (Archive)
The file has not been backed up since it was last modified.
D (Directory)
The file is a subdirectory and not included in the normal DOS directory search.
H (Hidden)
The file is not included in the normal DOS directory search.
R (Read-only)
The file cannot be modified.
S (System)
The file is a system file and not included in the normal DOS directory search.
-t Lists the entire directory tree starting at the named directory.
-v Writes information to standard output about the format of the disk. Use this flag to verify that a device is a DOS disk.

Examples

To read a directory of the DOS files on /dev/fd0, enter:

dosdir

The command returns the names of the files and disk-space information.

PG3-25.TXT
PG4-25.TXT
PG5-25.TXT
PG6-25.TXT
Free space: 312320 bytes

To read a directory of the DOS files on /dev/fd1, enter:

dosdir -D/dev/fd1

The command returns the names of the files and disk-space information.

PG7-25.TXT
PG8-25.TXT
PG9-25.TXT
PG10-25.TXT
Free space: 312320 bytes

Files

/usr/bin/dosdir Contains the dosdir command.

Related Information

The dosdel command, dosformat command, dosread command, doswrite command.

Files Overview in AIX 5L Version 5.2 System User's Guide: Operating System and Devices describes files, file types, and how to name files.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]