🧀 Learn Linux

Commonly used · Understanding the workspace

ls: List files and directories

Put in free practice

Syntax

ls [parameter] [path]

Options

-a
Show hidden files
-l
Show permissions and properties
-h
Compatible with display switch (sandbox size is teaching value)
-R
List recursively
-d
Show only the directory itself

Examples

ls -la

Usage and sandbox support

Files starting with . are hidden by default. Parameters can be combined into -la.

Hands-on exercises

Full documentation ↗

Related commands