What does Linux less -Pprompt or –prompt=prompt option do?

Less -Pprompt or –prompt=prompt option provides a way to tailor the three prompt styles to your own preference. This option would normally be put in the LESS environment variable, rather than being typed in with each less command. Such an option must either be the last option in the LESS variable or be terminated by a dollar sign.

Prompt options:

-Ps followed by a string changes the default (short) prompt to that string.

-Pm changes the medium (-m) prompt.

-PM changes the long (-M) prompt.

-Ph changes the prompt for the help screen.

-P= changes the message printed by the = command.

-Pw changes the message printed while waiting for data (in the F command).

Leave a Reply