Less Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Less Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

less

Open a file for interactive reading, allowing scrolling and search.

Maintainer: Anibal Monsalve Salazar



Section: text

Install less

  • Debian apt-get install less Click to copy
  • Ubuntu apt-get install less Click to copy
  • Alpine OS apk add less Click to copy
  • Arch Linux pacman -S less Click to copy
  • Kali Linux apt-get install less Click to copy
  • CentOS yum install less Click to copy
  • Fedora dnf install less Click to copy
  • Raspbian apt-get install less Click to copy
  • macOS brew install less Click 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 copy
Page down / up:
<Space> (down), b (up)Click to copy
Go to end / start of file:
G (end), g (start)Click to copy
Forward search for a string (press `n`/`N` to go to next/previous match):
/somethingClick to copy
Backward search for a string (press `n`/`N` to go to next/previous match):
?somethingClick to copy
Follow the output of the currently opened file:
FClick to copy
Open the current file in an editor:
vClick to copy
Exit:
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.