help dir, help ls
-------------------------------------------------------------------------------
Title
[D] dir -- Display filenames
Syntax
{dir|ls} ["][filespec]["] [, wide]
Note: Double quotes must be used to enclose filespec if the name
contains spaces.
Description
dir and ls -- they work the same way -- list the names of files in the
specified directory; the names of the commands come from names popular on
Unix and Windows computers. filespec may be any valid Mac, Unix, or
Windows file path or file specification (see [U] 11.6 File-naming
conventions) and may include "*" to indicate any string of characters.
Option
wide under Mac and Windows produces an effect similar to specifying /W
with the DOS dir command -- it compresses the resulting listing by
placing more than one filename on a line. Under Unix, it produces
the same effect as typing ls -F -C. Without the wide option, ls is
equivalent to ls -F -l.
Examples
Mac:
. ls
. ls, w
. ls *.dta
. ls ~:mydata:*.dta
. ls "~:My Data":*.dta
Unix:
. ls
. ls, w
. ls *.dta
. ls ~/mydata/*.dta
Windows:
. dir
. dir, w
. dir *.dta
. dir \mydata\*.dta
Also see
Manual: [D] dir
Help: [D] cd, [D] copy, [D] erase, [D] mkdir, [D] rmdir, [D] shell,
[D] type