Skip to content
Advertisement

xterm keep page from less in terminal after exit

I often view files using less and want to remember what i have just seen in the file. However when I quit less by pressing the q key my xterm window removes the page of less showing the file and only shows my command prompt.

How do I keep the less output on my terminal when I quit?

Advertisement

Answer

less -X

Use the -X option from the less man page described below:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement