102 words
1 minutes
Linux commands: less
2022-08-31

Linux commands: less#

The less command in Linux is used to view the content of a file one screen at a time. It is useful for viewing large files.

Basic Usage#

To view the content of a file, use the following command:

less filename
  • Press Space to move to the next page.
  • Press b to move to the previous page.
  • Press q to quit.

Searching in less#

To search for a string within the file, press / followed by the search term and press Enter.

Conclusion#

The less command is a powerful tool for viewing and navigating large files in Linux. It provides a convenient way to browse through file content.


Linux commands: less
https://zxce3.net/posts/cli/linux-commands-less/
Author
Memet Zx
Published at
2022-08-31