How Use Less Command in Linux?
Contents
Command Action
h Display help.
q Exit less .

How do I use less command to read a file?

Crack open a terminal window and navigate to a directory containing one or more text files that you want to view. Then run the command less filename , where filename is the name of the file you want to view.

How do I get out of less command in Linux?

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

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest