Online Linux Terminal Logo
OnlineLinuxTerminal
← All CommandsNavigation

$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

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 / FlagDescription
-lUse long listing format showing permissions, owner, size, and date.
-aDo not ignore entries starting with dot (.) including hidden files.
-hPrint human readable sizes (e.g. 1K, 234M, 2G).
Sponsored AdvertisementAdSense Slot (leaderboard)