>_ linuxcommand.dev
File management

ls

Lists the contents of directories.

Ubuntu CentOS Debian Arch SUSE Slackware Fedora
Verified: 2025-09-09
Syntax
$ls [OPTIONEN] [DATEI...]
Optionen
-l Lange Liste mit Details
-a Alle Dateien (inkl. versteckte)
-h Menschenlesbare Größen
-t Nach Änderungszeit sortieren
-r Umgekehrte Sortierung
-d Verzeichnis selbst anzeigen
--color=auto Farbige Ausgabe
-1 Ein Dateiname pro Zeile
Examples
$ls
$ls -l
$ls -a
$ls -lh
$ls -la
$ls -lt
$ls -ltr
$ls -ld /etc
$ls --color=auto
$ls -1
Typical use cases
?
Standard usage
ls --help
Note Available in all Linux distributions. <code>dir</code> and <code>vdir</code> are aliases with slightly different output.
Export