SYNTAX

    ls [options] [<dir_name>]


OPTIONS

-h (--help) bool

Display help.

-a (--all) bool

Display all files, including those with hidden and system attributes.

-l (--long) bool

Display verbose file information, including attributes, file size and last-modified date. The attributes have the following format:

d

directory

r

read only

h

hidden

s

system

a

archived

For example, d--s- indicates a directory with the system bit set. Note that system and hidden files/directories will only be shown if the --all option is specified.

-H (--human) bool

Display file sizes in human readable form.

-N (--no-localise) bool

Do not display localised time and date formats; instead use microseconds from 0AD nominal Gregorian.

-1 (--one) bool

Outputs one entry per line rather than trying to columnise the output. Is implied if stdout is redirected or if --long or --recurse are specified.

-r (--recurse) bool

Recursively list any directories that are encountered. Implies --one.


ARGUMENTS

[<dir_name>]

The directory to list (defaults to the current working directory). [filename]


DESCRIPTION

List the contents of a directory.

By default ls will columnize the output list. On very large directory listings this may cause the ls command to run out of memory. If this happens, try using the -1/--one option, which will not attempt to format the output.


SEE ALSO

cd


COPYRIGHT

Copyright (c) 2006-2011 Accenture. All rights reserved.