HPlogo HP-UX Reference Volume 1 of 5 > d

dosls(1)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

dosls, dosll — list contents of DOS directories

SYNOPSIS

dosls [-aAudl] device: [file] ...

dosll [-aAudl] device: [file] ...

DESCRIPTION

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

For each directory named, dosls lists the contents of that directory. For each file 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

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

-A

Same 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.

-u

Disable argument case conversion. In the absence of this option, all DOS file names are converted to uppercase.

-d

If an argument is a directory, list only its name. Often used with -l to get the status of a directory.

-l

List in long format, giving file attribute, size in bytes, and the date and time of last modification for each file, as well as listing the DOS volume label. Long listing is disabled if this option is used with the dosll command.

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

Metacharacters *, ?, and [ ... ] can be used when specifying DOS file names. These must be quoted when specifying a DOS file name, because file name expansion must be performed by the DOS utilities, not by the shell. DOS utilities expand file 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-UX special file /dev/rdsk/c2t1d0.

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

dosls -a /dev/rdsk/c2t1d0:

The following example lists all of the files 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 files in the directory:

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

© Hewlett-Packard Development Company, L.P.