NavigationCLI Manual
$ls
Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.
BefehlssyntaxPOSIX Standard
ls [OPTIONS] [FILE|DIRECTORY...]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
ls ist der grundlegende Befehl zur Anzeige von Dateien und Verzeichnissen im Dateisystem.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| -l | Use long listing format showing permissions, owner, group, size, and date. |
| -a | Show all files including hidden entries that begin with a period (.). |
| -h | Print file sizes in human-readable units (e.g., 4K, 25M, 2G) when used with -l. |
| -t | Sort files by modification timestamp, newest first. |
| -R | Recursively list all subdirectories and their contents. |
| -S | Sort files by file size, largest first. |
Praktische Anwendungsbeispiele
#1Detailed human-readable file listing
ls -l -hDisplays detailed metadata with human-readable file sizes.
#2List hidden configuration files
ls -a /home/userReveals hidden dotfiles such as .bashrc, .profile, and .config.
Verwandte Linux-Befehle
$cdNavigation
Wechseln Sie das aktuelle Arbeitsverzeichnis im Dateisystem.
$pwdNavigation
Druckt den absoluten Pfad des aktuellen Arbeitsverzeichnisses.
$chmodBerechtigungen & Sicherheit
Ändern Sie Dateizugriffsberechtigungen für Besitzer, Gruppe und andere Benutzer.
$whichNavigation
Locate the executable binary path of a command in system PATH.
$treeNavigation
Display directory structure in a recursive visual tree diagram.