ls

ls
Original authorscoreutils: Richard Stallman and David MacKenzie
DevelopersVarious open-source and commercial developers
Written inC
Operating systemMultics, Unix, Unix-like, Plan 9, Inferno, MSX-DOS
TypeCommand
Licensecoreutils: GPLv3+
BusyBox: GPL-2.0-only
Toybox: 0BSD
Plan 9: MIT License

ls is a shell command for listing files – including special files such as directories. Originally developed for Unix and later codified by POSIX and Single UNIX Specification, it is supported in many operating systems today, including Unix-like variants, Windows (via PowerShell and UnxUtils), EFI, and MSX-DOS (via MSX-DOS2 Tools).

The numerical computing environments MATLAB and GNU Octave include an ls command with similar functionality.

An ls command appeared in the first version of AT&T UNIX. The name inherited from Multics and is short for "list". ls is part of the X/Open Portability Guide since issue 2 of 1987. It was inherited into the first version of POSIX.1 and the Single Unix Specification.

In MS-DOS, OS/2, and Windows, the equivalent command is dir. Apple DOS for the Apple II uses CATALOG.