Install Ls On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install ls
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
List directory contents.
How to use ls?
Below are few example commands for ls that you can use in the terminal.
List files one per line:ls -1Click to copyList all files, including hidden files:ls -aClick to copyLong format list (permissions, ownership, size and modification date) of all files:ls -laClick to copyLong format list with size displayed using human readable units (KB, MB, GB):ls -lhClick to copyLong format list sorted by size (descending):ls -lSClick to copyLong format list of all files, sorted by modification date (oldest first):ls -ltrClick to copy
To install the latest version of ls in your favorite operating system just copy the ls installation command from above and paste it into terminal. It will download and install the latest version of ls 2026 package in your OS.




