dir

The dir command displays a file listing.

Command Format

dir {-l} {path}
or
ls {-l} {path}

where:

-l show additional information
path path to the directory to list

Functional description

The dir command display a file listing of the files in the current directory. If a path is given the directory pointed by the path is listed. If the -l option is given a long listing with additional information such as size and priviledges are output.

Environment

The command uses no environment variable.

See Also

The cd and pwd commands.