For each directory argument
ls lists the contents; for each file argument the name and requested information are listed. The
directory
. is assumed if no file arguments appear. The listing is sorted by file name by default, except that file
arguments are listed before directories.
Multi-column terminal output display width is determined by ioctl(2) and/or
the COLUMNS environment variable.
getconf PATH_RESOLVE determines how symbolic links are handled. This can be explicitly overridden by the --logical,
--metaphysical, and --physical options below. PATH_RESOLVE can be one of:
- logical
Follow all symbolic links.
- metaphysical
Follow command argument symbolic links, otherwise don't follow.
- physical
Don't follow symbolic links.