File Operations
ls
Lists the contents of directories.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Fedora
Verified: 2025-09-09
Syntax
$ls [OPTIONS] [FILE...]
Optionen
-l
Long list with details
-a
All files (including hidden)
-h
Human readable sizes
-t
Sort by modification time
-r
Reverse sort order
-d
Show directory itself
--color=auto
Colored output
-1
One filename per line
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