Less Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Install less
-
Debian
apt-get install lessClick to copy -
Ubuntu
apt-get install lessClick to copy -
Alpine OS
apk add lessClick to copy -
Arch Linux
pacman -S lessClick to copy -
Kali Linux
apt-get install lessClick to copy -
CentOS
yum install lessClick to copy -
Fedora
dnf install lessClick to copy -
Raspbian
apt-get install lessClick to copy -
macOS
brew install lessClick to copy
Open a file for interactive reading, allowing scrolling and search.
How to use less?
Below are few example commands for less that you can use in the terminal.
Open a file:less source_fileClick to copyPage down / up:<Space> (down), b (up)Click to copyGo to end / start of file:G (end), g (start)Click to copyForward search for a string (press `n`/`N` to go to next/previous match):/somethingClick to copyBackward search for a string (press `n`/`N` to go to next/previous match):?somethingClick to copyFollow the output of the currently opened file:FClick to copyOpen the current file in an editor:vClick to copyExit:qClick to copy
To install the latest version of less in your favorite operating system just copy the less installation command from above and paste it into terminal. It will download and install the latest version of less 2026 package in your OS.




