ls
List directory contents. More information: https://www.gnu.org/software/coreutils/manual/html_node/ls-invocation.html.
- List files one per line:
ls -1
- List [a]ll files, including hidden files:
ls -a
- List files with a trailing symbol to indicate file type (directory/, symbolic_link@, executable*, …):
ls -F
- List [a]ll files in [l]ong format (permissions, ownership, size, and modification date):
ls -la
- List files in [l]ong format with size displayed using [h]uman-readable units (KiB, MiB, GiB):
ls -lh
- List files in [l]ong format, sorted by [S]ize (descending) [R]ecursively:
ls -lSR
- List files in [l]ong format, sorted by [t]ime the file was modified and in [r]everse order (oldest first):
ls -ltr
- Only list [d]irectories:
ls -d */
Related Topics
العربية version
català version
Deutsch version
español version
فارسی version
français version
हिन्दी version
Indonesia version
italiano version
日本語 version
한국어 version
नेपाली version
Nederlands version
polski version
português (Brasil) version
русский version
தமிழ் version
ไทย version
中文 version
中文 (繁體, 台灣) version