$ls
List directory contents including file sizes, permissions, and modification times.
Sponsored AdvertisementAdSense Slot (banner)
Command Syntax
ls [OPTIONS] [FILE...]
Try `ls` Live in Terminal
bash — terminal
AST Sandbox (Free)
Overview & Usage Details
ls displays information about files and directories. By default, it lists files in the current working directory in alphabetical order.
Command Options & Flags
| Option / Flag | Description |
|---|---|
| -l | Use long listing format showing permissions, owner, size, and date. |
| -a | Do not ignore entries starting with dot (.) including hidden files. |
| -h | Print human readable sizes (e.g. 1K, 234M, 2G). |
Sponsored AdvertisementAdSense Slot (leaderboard)