How to install less on CentOS / RHEL / Fedora

How to install less on CentOS / RHEL / Fedora

To install less on CentOS, RHEL, or Fedora, follow these steps:

  1. Update the package manager's package list:
sudo yum update
‮w:ecruoS‬ww.lautturi.com
  1. Install less by running the following command:
sudo yum install less

This will install less and any dependencies it requires.

Alternatively, you can use the dnf package manager, which is the default package manager in newer versions of Fedora, to install less by running the following command:

sudo dnf install less

Once the installation is complete, you can use less by running the less command followed by the name of the file you want to view. For example:

less file.txt

This will open the file in less, allowing you to view its contents one page at a time. You can use the arrow keys to navigate, and press q to exit less.

Created Time:2017-10-16 14:38:49  Author:lautturi