How Do I Exit Less in Linux?
Contents

To quit less and go back to the command line press q .

How do I get out of less in Linux?

3 Answers. To quit less , type q . Also, check out man less , or type h from within less for some more, useful bits of information.

How do I go to end of file in less command?

A more effective way to do this might be to use the less command, then jump down to the very bottom of the file with a shift-g sequence. From there, you back scroll back up in the file indefinitely (well, at least up to the top of the file). Enter q to exit.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest