List all directory entries. In the absence of this option, hidden ®les, system ®les, and ®les whose names begin with a dot (.) are not listed.

d

dosls(1)

dosls(1)

NAME

dosls, dosll - list contents of DOS directories

SYNOPSIS

dosls [-aAudl]device:[ ®le ] ...

dosll [-aAudl]device:[ ®le ] ...

DESCRIPTION

dosls is the DOS counterpart of ls (see ls(1)).

For each directory named, dosls lists the contents of that directory. For each ®le named, dosls repeats its name and any other information requested. If invoked by the name dosll, the -l(ell) option is implied.

Options

dosls and dosll recognizes the following options:

-a

-ASame as -a, except the current directory and the parent directory are not listed. For the superuser, this option defaults to being set, and is disabled by -A.

-uDisable argument case conversion. In the absence of this option, all DOS ®le names are converted to uppercase.

-dIf an argument is a directory, list only its name. Often used with -lto get the status of a directory.

-lList in long format, giving ®le attribute, size in bytes, and the date and time of last modi®cation for each ®le, as well as listing the DOS volume label. Long listing is disabled if this option is used with the dosll command.

A DOS ®le name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS ®le naming conventions.

Metacharacters *, ?, and [ ... ] can be used when specifying DOS ®le names. These must be quoted when specifying a DOS ®le name, because ®le name expansion must be performed by the DOS utilities, not by the shell. DOS utilities expand ®le names as described in regexp(5) under PATTERN MATCHING NOTATION.

EXAMPLES

These examples assume that a DOS directory structure exists on the device accessed through HP-UXspecial ®le /dev/rdsk/c2t1d0.

The following example lists all of the ®les in the root directory of the DOS directory structure:

dosls -a /dev/rdsk/c2t1d0:

The following example lists all of the ®les with extension bat in the root directory of the DOS directory structure:

dosls -a '/dev/rdsk/c2t1d0:*.bat'

The following example produces a long-format listing of all the information about the DOS directory /dos/math, but does not list the ®les in the directory:

dosls -ld /dev/rdsk/c2t1d0:/dos/math

SEE ALSO

dos2ux(1), doschmod(1), doscp(1), dosdf(1), dosmkdir(1), dosrm(1), ls(1), dosif(4).

Section 1190

− 1 −

HP-UX Release 11i: December 2000