
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!
More Posts related to Linux,
- Rename a directory using Linux/Unix command
- ls command to list only directories
- How to Restart or Reload Nginx Server Service on Linux
- 3 ways to clear screen on Linux Terminal
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash]
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- Fix: sudo: unable to open Read-only file system
- Create Hidden File or Directory using Shell Command
- Command to know the installed Debian version?
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - bash: man: command not found
- How to tar.gz a directory or folder Command
- How to Display content of a file in Terminal Screen?
- How to change bash terminal prompt string and color
- Sort ls command by last modified date and time
- Execute .bin and .run file Ubuntu Linux
- zsh hello world example
- How to check uptime of Linux/Unix/macOS system/server using console command?
- [Fix] Linux - bash: useradd: command not found
- Command to check Last Login or Reboot History of Users and TTYs
- How to install and Configure sar sysstat tools in Ubuntu Linux
- How to use SCP Command to Copy Directory
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to connect to SSH port other than default 22
- Install OpenSSL on Linux/Ubuntu
More Posts:
- How to Print to stderr in Python - Python
- Java: The value of the local variable string is not used - Java
- How to Change Java JDK Version in IntelliJ IDE - Java
- Change the default diff or commit editor for git - Git
- java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager - Android
- Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end users experience - Java
- PowerShell For Each Loop Examples - Powershell
- Fix - zsh: command not found: conda [macOS] - zsh