View file contents page by page
less -? {help} -a {search-skip-screen} -A {search-skip-screen} -b {buffers} -B {auto-buffers} ๐ help ๐ search-skip-screen ๐ buffers ๐ auto-buffers less -? {help} -a {search-skip-screen} -A {search-skip-screen} -b {buffers} -B {auto-buffers} Sandbox: execFile · Timeout: 30s
system.file.less system.file.search system.file.process system.file.copy system.file.move system.file.delete | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
help | string | No | - | Display help (from command line) | -?, --help |
search-skip-screen | string | No | - | Search skips current screen | -a, --search-skip-screen |
SEARCH-SKIP-SCREEN | string | No | - | Search starts just after target line | -A, --SEARCH-SKIP-SCREEN |
buffers | integer | No | - | Number of buffers | -b, --buffers |
auto-buffers | string | No | - | Don't automatically allocate buffers for pipes | -B, --auto-buffers |
clear-screen | string | No | - | Repaint by clearing rather than scrolling | -c, --clear-screen |
dumb | string | No | - | Dumb terminal | -d, --dumb |
color | string | No | - | Set screen colors | -D, --color |
quit-at-eof | string | No | - | Quit at end of file | -e, -E, --quit-at-eof, --QUIT-AT-EOF |
force | string | No | - | Force open non-regular files | -f, --force |
quit-if-one-screen | string | No | - | Quit if entire file fits on first screen | -F, --quit-if-one-screen |
hilite-search | string | No | - | Highlight only last match for searches | -g, --hilite-search |
HILITE-SEARCH | string | No | - | Don't highlight any matches for searches | -G, --HILITE-SEARCH |
max-back-scroll | integer | No | - | Backward scroll limit | -h, --max-back-scroll |
ignore-case | string | No | - | Ignore case in searches that do not contain uppercase | -i, --ignore-case |
IGNORE-CASE | string | No | - | Ignore case in all searches | -I, --IGNORE-CASE |
jump-target | integer | No | - | Screen position of target lines | -j, --jump-target |
status-column | string | No | - | Display a status column at left edge of screen | -J, --status-column |
lesskey-file | string | No | - | Use a compiled lesskey file | -k, --lesskey-file |
quit-on-intr | string | No | - | Exit less in response to ctrl-C | -K, --quit-on-intr |
no-lessopen | string | No | - | Ignore the LESSOPEN environment variable | -L, --no-lessopen |
long-prompt | string | No | - | Set prompt style | -m, -M, --long-prompt, --LONG-PROMPT |
line-numbers | string | No | - | Suppress line numbers in prompts and messages | -n, --line-numbers |
LINE-NUMBERS | string | No | - | Display line number at start of each line | -N, --LINE-NUMBERS |
log-file | file | No | - | Copy to log file (standard input only) | -o, --log-file |
LOG-FILE | file | No | - | Copy to log file (unconditionally overwrite) | -O, --LOG-FILE |
pattern | string | No | - | Start at pattern (from command line) | -p, --pattern |
flag-P | string | No | - | --prompt=[prompt] | -P |
quiet | string | No | - | Quiet the terminal bell | -q, -Q, --quiet, --QUIET, --silent, --SILENT |
raw-control-chars | string | No | - | Output "raw" control characters | -r, -R, --raw-control-chars, --RAW-CONTROL-CHARS |
HILITE-UNREAD | string | No | - | Highlight first new line after any forward movement | -W, --HILITE-UNREAD |
chop-long-lines | string | No | - | Chop (truncate) long lines rather than wrapping | -S, --chop-long-lines |
exit-follow-on-close | file | No | - | Exit F command on a pipe when writer closes pipe. --file-size Automatically determine the size of the input file. --follow-name The F command changes files if the input file is renamed. --header=[L[,C[,N]]] Use L lines (starting at line N) and C columns as headers. --incsearch Search file as each pattern character is typed in. --intr=[C] Use C instead of ^X to interrupt a read. --lesskey-context=text Use lesskey source file contents. --lesskey-src=file Use a lesskey source file. --line-num-width=[N] Set the width of the -N line number field to N characters. --match-shift=[N] Show at least N characters to the left of a search match. --modelines=[N] Read N lines from the input file and look for vim modelines. --mouse Enable mouse input. --no-keypad Don't send termcap keypad init/deinit strings. --no-histdups Remove duplicates from command history. --no-number-headers Don't give line numbers to header lines. --no-search-header-lines Searches do not include header lines. --no-search-header-columns Searches do not include header columns. --no-search-headers Searches do not include header lines or columns. --no-vbell Disable the terminal's visual bell. --redraw-on-quit Redraw final screen when quitting. --rscroll=[C] Set the character used to mark truncated lines. --save-marks Retain marks across invocations of less. --search-options=[EFKNRW-] Set default options for every search. --show-preproc-errors Display a message if preprocessor exits with an error status. --proc-backspace Process backspaces for bold/underline. --PROC-BACKSPACE Treat backspaces as control characters. --proc-return Delete carriage returns before newline. --PROC-RETURN Treat carriage returns as control characters. --proc-tab Expand tabs to spaces. --PROC-TAB Treat tabs as control characters. --status-col-width=[N] Set the width of the -J status column to N characters. --status-line Highlight or color the entire line containing a mark. --use-backslash Subsequent options use backslash as escape char. --use-color Enables colored text. --wheel-lines=[N] Each click of the mouse wheel moves N lines. --wordwrap Wrap lines at spaces | --exit-follow-on-close |
file_size | boolean | No | - | --file-size | |
follow_name | boolean | No | - | --follow-name | |
hilite-unread | string | No | - | Highlight first new line after forward-screen | -w, --hilite-unread |
incsearch | boolean | No | - | --incsearch | |
intr | boolean | No | - | --intr | |
lesskey_context | boolean | No | - | --lesskey-context | |
lesskey_src | boolean | No | - | --lesskey-src | |
line_num_width | boolean | No | - | --line-num-width | |
match_shift | boolean | No | - | --match-shift | |
max-forw-scroll | integer | No | - | Forward scroll limit | -y, --max-forw-scroll |
modelines | boolean | No | - | --modelines | |
no-init | string | No | - | Don't use termcap init/deinit strings | -X, --no-init |
no_histdups | boolean | No | - | --no-histdups | |
no_keypad | boolean | No | - | --no-keypad | |
no_number_headers | boolean | No | - | --no-number-headers | |
no_search_header_columns | boolean | No | - | --no-search-header-columns | |
no_search_header_lines | boolean | No | - | --no-search-header-lines | |
no_search_headers | boolean | No | - | --no-search-headers | |
no_vbell | boolean | No | - | --no-vbell | |
proc_backspace | boolean | No | - | --proc-backspace | |
proc_return | boolean | No | - | --proc-return | |
proc_tab | boolean | No | - | --proc-tab | |
quotes | string | No | - | Set shell quote characters | --quotes |
redraw_on_quit | boolean | No | - | --redraw-on-quit | |
rscroll | boolean | No | - | --rscroll | |
save_marks | boolean | No | - | --save-marks | |
search_options | boolean | No | - | --search-options | |
shift | integer | No | - | Set horizontal scroll amount (0 = one half screen width) | --shift |
show_preproc_errors | boolean | No | - | --show-preproc-errors | |
squeeze-blank-lines | string | No | - | Squeeze multiple blank lines | -s, --squeeze-blank-lines |
status_col_width | boolean | No | - | --status-col-width | |
status_line | boolean | No | - | --status-line | |
tabs | string | No | - | Set tab stops | -x, --tabs |
tag | string | No | - | Find a tag | -t, --tag |
tag-file | string | No | - | Use an alternate tags file | -T, --tag-file |
tilde | string | No | - | Don't display tildes after end of file | --tilde |
underline-special | string | No | - | Change handling of backspaces, tabs and carriage returns | -u, -U, --underline-special, --UNDERLINE-SPECIAL |
use_backslash | boolean | No | - | --use-backslash | |
use_color | boolean | No | - | --use-color | |
version | integer | No | - | Display the version number of "less" | -V, --version |
wheel_lines | boolean | No | - | --wheel-lines | |
window | integer | No | - | Set size of window | -z, --window |
wordwrap | boolean | No | - | --wordwrap |
Basic usage with help
less ${help} Display help message
less --help less is a command-line utility for view file contents page by page.
less -? {help} -a {search-skip-screen} -A {search-skip-screen} -b {buffers} -B {auto-buffers}