How to automatically pipe to less if the result is more than a page on my shell?

前端 未结 5 829
梦如初夏
梦如初夏 2021-02-01 03:41

Mostly, I will not use | less for each and every command from the shell.

Pipe to less is used only when I actually run the command without is and find out t

5条回答
  •  别跟我提以往
    2021-02-01 04:08

    Pipe it to less -F aka --quit-if-one-screen:

    Causes less to automatically exit if the entire file can be dis- played on the first screen.

提交回复
热议问题