less Command Generator
Generate less commands to page through files
Getting Started with less
## What is less?
`less` is a pager — it lets you scroll through files (or command output piped to stdin) one screen at a time. Unlike `more`, less supports backward scrolling, searching with `/`, and is the default pager for `man` pages. It is the standard way to read large logs and long files without loading them fully into memory.
## How to Use
1. **Set Options**: Toggle line numbers, case-insensitive search, auto-quit, etc. 2. **Specify File**: Enter the path of the file to view (or pipe output in). 3. **Copy & Run**: Paste the generated command into your terminal.
Inside less: press `/` to search forward, `?` backward, `q` to quit, `g` to jump to the top, `G` to the bottom.
Common Options
### `-N` Line numbers Prefix each line with its number — perfect for navigating stack traces and log files.
### `-S` Chop long lines Truncate overlong lines instead of wrapping them, letting you scroll sideways with the arrow keys.
### `-i` Case-insensitive search Make searches ignore case when the pattern is all lowercase (mixed-case patterns still match exactly).
### `-M` Verbose prompt Show a richer prompt with file name, position, and percentage read.
### `-E` Quit at end of file Automatically exit when you reach the bottom — handy for short files in scripts.
### `-F` Quit if one screen Exit immediately if the entire file fits on a single screen, avoiding an unnecessary pager for tiny files.
### `-X` No termcap init Skip clearing the screen on exit so the content stays visible after you quit — useful in `git` and `man`.
▶How do I follow a growing log file in real time?
▶How do I make less keep its output on screen after quitting?
▶How do I search inside the file?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee