ls
List directory contents
Overview
The ls command is used to list files and directories. It is one of the most frequently used commands in Linux.
Syntax
ls [OPTION]... [FILE]...Common Options
-lUse a long listing format.
-aDo not ignore entries starting with . (show hidden files).
-hWith -l, print sizes in human readable format (e.g., 1K 234M 2G).
Examples
$ ls
List files in the current directory.
$ ls -l Documents
List files in the Documents directory in long format.
Related Commands
listfilesdirectorycontentsls