ls(1) - SerenityOS man pages

Name

ls - list directory contents

Synopsis

$ ls [options...] [path...]

Description

ls lists directory contents and attributes.

If no path argument is provided the current working directory is used.

Options

Arguments

Examples

# List contents of working directory
$ ls
# List contents of working directory including hidden dot files
$ ls -la
# List contents of working directory and its subdirectories
$ ls -R
# List contents of /etc/ directory
$ ls /etc
# List contents of /etc/ directory including hidden dot files
$ ls -la /etc