Online Linux Terminal Logo
OnlineLinuxTerminal
NavigationCLI Manual

$ls

Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.

BefehlssyntaxPOSIX Standard
ls [OPTIONS] [FILE|DIRECTORY...]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

ls ist der grundlegende Befehl zur Anzeige von Dateien und Verzeichnissen im Dateisystem.

Wichtige Optionen und Flags

Flag / OptionDescription
-lUse long listing format showing permissions, owner, group, size, and date.
-aShow all files including hidden entries that begin with a period (.).
-hPrint file sizes in human-readable units (e.g., 4K, 25M, 2G) when used with -l.
-tSort files by modification timestamp, newest first.
-RRecursively list all subdirectories and their contents.
-SSort files by file size, largest first.

Praktische Anwendungsbeispiele

#1Detailed human-readable file listing

Displays detailed metadata with human-readable file sizes.

#2List hidden configuration files
ls -a /home/user

Reveals hidden dotfiles such as .bashrc, .profile, and .config.