less

Open a file for interactive reading, allowing scrolling and search. More information: <https://greenwoodsoftware.com/less/>.

Install

All systems
curl cmd.cat/less.sh
Debian Debian
apt-get install less
Ubuntu
apt-get install less
Alpine
apk add less
Arch Arch Linux
pacman -S less
image/svg+xml Kali Linux
apt-get install less
CentOS
yum install less
Fedora
dnf install less
Windows (WSL2)
sudo apt-get update sudo apt-get install less
OS X
brew install less
Raspbian
apt-get install less
Docker
docker run cmd.cat/less less powered by Commando

Open a file for interactive reading, allowing scrolling and search. More information: <https://greenwoodsoftware.com/less/>.

  • Open a file:
    less source_file
  • Page down/up:
    <Space> (down), b (up)
  • Go to end/start of file:
    G (end), g (start)
  • Forward search for a string (press `n`/`N` to go to next/previous match):
    /something
  • Backward search for a string (press `n`/`N` to go to next/previous match):
    ?something
  • Follow the output of the currently opened file:
    F
  • Open the current file in an editor:
    v
  • Exit:
    q

© tl;dr; authors and contributors