List Directory Contents

List files and directories

filesystem
basic

Command

ls

Explanation

ls is used to list files and directories. It lists the files and directories in the current directory.

Examples

List files in current directory

ls

Long listing format

ls -l

Show hidden files

ls -a