README.md 411 B

ls

Call the getdents64 function and list filenames of directory entries.

Description

The program ls asks the kernel the entries of the the current working directory and prints them to standard output.

Usage

$ ls

Comment

The entries are listed in directory order and not sorted :). Note that "dot" files are not treated specially. There's a limit of 16 MiB for the directory structure length.