ls [-aAbcCdfFgilmnopqrRstux1] [pathname ...]
If no pathname is provided, ls displays the files and directories in the current directory.
The ls command behaves differently depending on whether its output is sent to the screen or to a pipe or file. In the latter case, ls displays only one file per line. In the former case, ls produces several columns, and so more than one file is typically listed per line.
cause a copy of file1 to be displayed on the screen followed by file2
ls file1 file2
If `-' is given as one of the filenames, then ls will read the standard input.
Options are specified in the command line.
-a list all entries, including names beginning with a period (.) -A same as -a only the current directory (".") and parent directory ("..") are not listed -b display unprintable characters using octal notation -C output using column format (default behavior when ls outputs to screen) -c sort output according to time of last modification of file or directory -d display information about named directory, rather than directory contents -F output a slash (/) after directory names -i display inode numbers -L list symbolic links -l display long format information (owner, group, size, time filename, links, etc.) -m display names in a single line, with commas separating names -n indicate user-ID and group-ID numbers -o do not display owner -p appends '/' following directory names -q display nongraphic characters as `?' -R list subdirectories recursively -r sort output in reverse order -s indicate file size in blocks -t sort output by modification time -u sort by last access time -x output order by row rather than by column -1 display output as a single column --help displays a help screen summarizing the command syntax
lc (UNIX), file (UNIX), find (UNIX)