$ ls
List directory contents
DOCUMENTEDNavigationUbuntu 24.04 LTS baseline
Synopsis
ls [OPTION]... [FILE]...
What it does
- By default, `ls` lists the current directory.
- Names beginning with `.` are omitted unless an option such as `-a` is used.
Examples
Long listing with hidden files
ls -laHuman-readable sizes
ls -lhList a specific directory
ls /etcImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.