Skip to content

Disable screen clear after less command

  • by

I’m posting this here mostly for myself (since I keep forgetting how to disable the screen clear after using “less”), but also in case others find the page.

Add this to your /etc/bashrc  or ~/.bashrc or ~/.profile

export LESS=X

I’m copying this from THIS SITE.