Cart 0
No products in the cart.


How to use Man Command in Linux ?

The man command is a built-in command in Linux distributions used to display the manual pages for a specified command, system call, library function, or file format. The command has several options for displaying manual pages and can be used in different Linux distributions with the same syntax and options.

 

How to fix the "Man Command Not Found" Error in Linux ?

If you are using Linux and you get the error "Man command not found" when trying to run the man command, it can be very frustrating. Fortunately, there is an easy fix to this error. Here is a step-by-step tutorial on how to fix this error in Linux.

 

1. Check if the man command is installed

Before you can fix the issue, you need to make sure that the man command is actually installed on your system. To do this, run the following command in a terminal window:

$ which man

If you don't get any output, then the man command is not installed. However, if you get an output like /usr/bin/man, it means that the man command is installed.

 

2. Install the man command

If the command is not installed, you need to install it. To do this, you need to use the package manager of your Linux distribution.

For example, if you are using Ubuntu, you can use apt-get to install the man command:

$ sudo apt-get install man

If you are using RedHat, you can use yum to install the man command:

$ sudo yum install man

Once the installation is complete, you should be able to use the man command.

 

3. Update your PATH variable

If the man command is installed but you still get the error, it may be because your PATH variable is not set correctly. The PATH variable is a list of directories that the system looks in when you run a command.

To update your PATH variable, open the .bashrc file in your home directory with a text editor. Then, add the path to the man command to the end of the PATH variable. For example:

$ export PATH=$PATH:/usr/bin/man

Save the file and then run the following command to reload the PATH variable:

$ source ~/.bashrc

Now, the man command should work correctly.

 



icon

Sign up to Newsletter

...and receive a free support ticket.