If you are using a Linux distribution such as Ubuntu, CentOS, or Fedora and when you run man command you get bash: man: command not found, the most common reason is man pages are not installed.
How to install man package on Linux
Based on which Linux Distribution you are using make use of the package manager to install man
Red Hat (REHL) - CentOS/Fedora:# yum install man
# dnf install man
Ubuntu/Debian:
# apt install man
Alpine Linux:
# apk add man
Example:
# yum install man
....
=================================================================================
Package Arch Version Repository Size
=================================================================================
Installing:
man-db aarch64 2.6.3-9.amzn2.0.3 amzn2-core 556 k
Installing for dependencies:
groff-base aarch64 1.22.2-8.amzn2.0.2 amzn2-core 939 k
less aarch64 458-9.amzn2.0.2 amzn2-core 121 k
libpipeline aarch64 1.2.3-3.amzn2.0.2 amzn2-core 53 k
Transaction Summary
=================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 1.6 M
Installed size: 6.5 M
Is this ok [y/d/N]: y
...
Downloading packages:
...
Installed:
man-db.aarch64 0:2.6.3-9.amzn2.0.3
Complete!
If the man database is installed, try the man command again and it should work,
# man ls
LS(1) User Commands LS(1)
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to Linux,
- Command to know the Available Memory on Linux System
- How to install curl on Alpine Linux
- How to backup a file in Linux/Unix
- Install Java Runtime Environment (Oracle or open JRE) on Ubuntu
- What is the Default Admin user and Password for Jenkins
- How to tar.gz a directory or folder Command
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- Fix: bash: ipconfig: command not found on Linux
- Command to check Last Login or Reboot History of Users and TTYs
- Linux: Create a New User and Password and Login Example
- ls command to list only directories
- bash: cls: command not found
- How to exit from nano command
- Installing and using unzip Command to unzip a zip file using Terminal
- What does apt-get update command does?
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash]
- How to remove or uninstall Java from Ubuntu using apt-get
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Sort ls command by last modified date and time
- Create Nested Directories using mkdir Command
- How to Exit a File in Terminal (Bash/Zsh)
- Command to know the installed Debian version?
- How to connect to SSH port other than default 22
- How to save a file in Nano Editor and Exit
- Install OpenSSL on Linux/Ubuntu
More Posts:
- Mac Terminal Find Command History - MacOS
- Install Native Java JDK JRE on Apple Silicon M1 Mac - MacOS
- How to Open PowerShell on Mac? - Powershell
- SharePoint error - Your organization doesn't allow sharing with users from this domain. Please contact your IT department for help. (OSE403) - SharePoint
- [Mac] Find a file using filename in macOS Terminal - MacOS
- Copy file from one directory to other in Php - PHP
- Mac turn dark mode on or off using terminal command - MacOS
- Fix: Amazon Linux bash: sudo: command not found - AWS