If you host or manage a website on a linux server, the man command is one of the fastest ways to get reliable help about system tools, daemons, and libraries. Think of man pages as the built-in manual for commands you use every day: nginx, sshd, systemctl, iptables, and more.
What the man command is and why it matters
man opens a formatted manual entry for a program or library function. Instead of Googling and sifting through forum posts, man shows the official documentation installed with the package. That documentation often includes syntax, options, config file locations, and examples you can act on right away.
Why website owners should care
- Quickly check command options before running them on a production server.
- Find default config file paths and example usage.
- Understand exit codes and log locations when troubleshooting.
- Learn which section to consult for client libraries vs. system commands.
Basic usage
Open a terminal and type:
man name> Examples:
man nginx
man sshd
man systemctlman opens the page in a pager (usually less). Use the arrow keys, Page Up/Down, or search inside the page with / followed by a term.
Common navigation keys
- Space or Page Down: move forward
- b or Page Up: move back
- /term then Enter: search forward
- n: next search result
- q: quit
Understanding man page sections
Man pages are grouped by section numbers. If a name appears in several sections, you can pick the right one:
- 1 , User commands (e.g., ls, nginx)
- 2 , Kernel calls
- 3 , Library functions (C libraries)
- 5 , File formats and config files (nginx.conf)
- 8 , System administration commands (systemctl, iptables)
To open a specific section, add the section number:
man 5 nginx
man 8 iptablesSearch and discovery
Not sure which command or function handles something? Try these:
- apropos / man -k , search short descriptions:
man -k ssl
apropos nginx - man -f , show a one-line synopsis (like whatis):
man -f systemctl
whatis nginx - man -K , search the full text of all man pages (slow):
man -K "websocket"
Typical sections inside a man page
Once you open a man page, look for these headings:
- SYNOPSIS , how to call the command and available flags
- DESCRIPTION , what the program does
- OPTIONS , detailed flag descriptions
- FILES , important config files and paths
- EXAMPLES , practical usage (not always present)
- SEE ALSO , related commands and manual sections
Examples that matter for website owners
Useful commands to check via man pages when managing a web server:
- nginx , config file layout and directives (see man 5 nginx for config file format)
- sshd / ssh , authentication options and config (sshd_config location)
- systemctl , how to inspect and restart services
- journalctl , reading logs and filtering by unit
- iptables / nft , rules and persistence
Quick example: check nginx config syntax and where errors will be logged:
man nginx
# then on the shell
nginx -t
journalctl -u nginx.serviceWhen man pages are missing or minimal
Sometimes a container or minimal distro doesn’t include man pages. Install them:
# Debian/ubuntu
sudo apt update
sudo apt install man-db manpages manpages-dev
# RHEL/centos
sudo yum install man-db man-pagesFor language-specific bindings or developer docs, install the -dev or -docs packages for that project.
Customize how man displays pages
If you prefer another pager or want html output:
- Set PAGER or MANPAGER:
export MANPAGER="less -R"
export PAGER=less - Convert a man page to HTML (for copying or sharing):
man -Thtml nginx | lynx -stdin
man -Thtml nginx > nginx.html
Quick troubleshooting checklist
- No man page found: install man-db or the package’s docs
- Config file path not obvious: check the FILES section in the man page
- Need examples: search online for “command examples” and include the man page as a reference
Where to find man pages online
If you’re away from the server, use reliable online mirrors:
- man7.org , extensive linux and systemd documentation
- die.net , web-hosted man pages
- Official project docs (nginx.org, systemd.io)
Practical tips to save time
- Read SYNOPSIS first to avoid running a command with the wrong flags.
- Search for the exact config file location in the FILES section before editing.
- Use man -k to find commands related to your task (for example, “ssl” or “rewrite”).
- Keep a short personal snippet of commonly used commands and their man-page links.
Final summary
man is a compact, reliable reference that helps you run, configure, and troubleshoot server tools without guessing. Start by opening man pages for services you manage, learn the SYNOPSIS and FILES sections, and use man -k or apropos to discover related commands. If your server lacks man pages, install the appropriate packages or use trusted online mirrors. With a few shortcuts, man will save time and reduce errors on your sites.
