Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

ls

List directory contents

Syntax

ls [OPTION]... [FILE]...

Common Options

-lUse long listing format
-aShow all files including hidden
-hHuman-readable file sizes
-tSort by modification time
-rReverse order
-SSort by file size
-RList subdirectories recursively

Common Examples

ls -la

Detailed list of all files

ls -lh

Human-readable sizes

ls -ltr

Reverse time sort

Related Commands

Related Tools

More Code & Dev Tools