ls -- list directory contents


ls shall behave as specified in POSIX 1003.1-2008 (ISO/IEC 9945-2009), but with extensions listed below.



If the file is a character special or block special file, the size of the file shall be replaced with two unsigned numbers in the format "%u, %u", representing the major and minor device numbers associated with the special file.

Note: The LSB does not specify the meaning of the major and minor devices numbers.


in addition to POSIX 1003.1-2008 (ISO/IEC 9945-2009) XSI optional behavior of printing a slash for a directory, ls -p may display other characters for other file types.