HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

d
dosls(1) dosls(1)
(TO BE OBSOLETED)
NAME
dosls, dosll - list contents of DOS directories
SYNOPSIS
dosls [-aAmudl] device:[file ] ...
dosll [-aAmudl] device:[file ] ...
DESCRIPTION
The
dosls and dosll commands are targeted for removal from HP-UX; see the WARNINGS below.
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.
-m If an ordinary file with the same name as volume label exists, operation will be performed on
the file instead of volume label.
-u Disable argument case conversion. In the absence of this option, all DOS file names are con-
verted 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.
WARNINGS
Use of
dosls and dosll is discouraged because they are targeted for removal from HP-UX.
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
SEE ALSO
dos2ux(1), doschmod(1), doscp(1), dosdf(1), dosmkdir(1), dosrm(1), ls(1), dosif(4).
Section 1198 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005