ls - List files/directories
CODE:
$ ls [options] [dir]
The ls command lists the directory contents, and lists information about the files/directories.
Using ls without options will simply output all the files and directories (as shown).
CODE:
$ ls
An example with option -l:
CODE:
$ ls -l
This uses the -l (lower case L) option for long format which displays Unix file types, permissions, number of hard links, owner, group, size, date and filename (as shown below).

Options:
-a, --alldo not hide entries starting with .-A, --almost-alldo not list implied . and ..--authorprint the author of each file-b, --escapeprint octal escapes for nongraphic characters--block-size=SIZEuse SIZE-byte blocks-B, --ignore-backupsdo not list implied entries ending with ~-cwith -lt: sort by, and show, ctime (time of last modification of file status information) with -l: show ctime and sort by name otherwise: sort by ctime-Clist entries by columns--color[=WHEN]control whether color is used to distinguish file types. WHEN may be `never', `always', or `auto'-d, --directorylist directory entries instead of contents-D, --diredgenerate output designed for Emacs' dired mode-fdo not sort, enable -aU, disable -lst-F, --classifyappend indicator (one of */=@|) to entries--format=WORDacross -x, commas -m, horizontal -x, long -l, single-column -1, verbose -l, vertical -C--full-timelike -l --time-style=full-iso-glike -l, but do not list owner-G, --no-groupinhibit display of group information-h, --human-readableprint sizes in human readable format (e.g., 1K 234M 2G)--silikewise, but use powers of 1000 not 1024-H, --dereference-command-linefollow symbolic links on the command line--indicator-style=WORD append indicator with style WORD to entry names:none (default), classify (-F), file-type (-p)-i, --inodeprint index number of each file-I, --ignore=PATTERNdo not list implied entries matching shell PATTERN-klike --block-size=1K-luse a long listing format-L, --dereferencewhen showing file information for a symbolic link, show information for the file the link references rather than for the link itself-mfill width with a comma separated list of entries-n, --numeric-uid-gidlike -l, but list numeric UIDs and GIDs-N, --literalprint raw entry names (don't treat e.g. control characters specially)-olike -l, but do not list group information-p, --file-typeappend indicator (one of /=@|) to entries-q, --hide-control-charsprint ? instead of non graphic characters--show-control-charsshow non graphic characters as-is (default unless program is `ls' and output is a terminal)-Q, --quote-nameenclose entry names in double quotes--quoting-style=WORDuse quoting style WORD for entry names: literal, locale, shell, shell-always, c, escape-r, --reversereverse order while sorting-R, --recursivelist subdirectories recursively-s, --sizeprint size of each file, in blocks-Ssort by file size--sort=WORDextension -X, none -U, size -S, time -t, version -vstatus -c, time -t, atime -u, access -u, use -u--time=WORDshow time as WORD instead of modification time: atime, access, use, ctime or status; use specified time as sort key if --sort=time--time-style=STYLEshow times using style STYLE: full-iso, long-iso, iso, locale, +FORMATFORMAT is interpreted like `date'; if FORMAT is FORMAT1FORMAT2, FORMAT1 applies to non-recent files and FORMAT2 to recent files; if STYLE is prefixed with `posix-', STYLE takes effect only outside the POSIX locale-tsort by modification time-T, --tabsize=COLSassume tab stops at each COLS instead of 8-uwith -lt: sort by, and show, access time with -l: show access time and sort by name otherwise: sort by access time-Udo not sort; list entries in directory order-vsort by version-w, --width=COLSassume screen width instead of current value-xlist entries by lines instead of by columns-Xsort alphabetically by entry extension-1list one file per line--helpdisplay this help and exit--versionoutput version information and exit