Operations 5 min read

Master Linux man Pages: Essential Tips and Commands for Efficient Navigation

An introductory guide to Linux's man command explains its sectional organization, configuration file, essential navigation shortcuts, bookmarking, shell execution, and useful options like -a, -aw, -M, -k, and -f, helping users efficiently access and search manual pages.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Master Linux man Pages: Essential Tips and Commands for Efficient Navigation

Linux provides a fairly rich set of manual pages (man), short for manual, which are frequently used in daily system administration. This article gives a brief overview of man.

1) Manual sections

Man pages are divided into multiple sections, each represented by a number. Sections correspond to categories; for example, man 1 passwd and man 5 passwd refer to different sections. By default, man passwd searches the sections in the predefined order and displays the first match. Specifying a section restricts the search to that section.

2) Configuration file

The configuration file for man is /etc/man.config. You can view its help with man 5 man.config. Most users keep the default settings; the important parameters are MANPATH (paths where man pages are stored) and MANSECT (search order). Modifying them is generally not recommended.

3) Common usage

Basic operations : Use man to open a manual. Navigation keys are similar to vi; press h for help.

Page navigation : Space for next page, Page Up for previous, Page Down for next, Home for start, End for end.

Line movement : Arrow keys or j (down) and k (up).

Search : /string searches forward, ?string searches backward, n repeats forward, N repeats backward.

Bookmarks : Define a bookmark with m followed by a name, e.g., mletter. Jump to it with 'letter.

Execute shell : Type !command inside man, e.g., !echo 'hello world'.

Quit : Press q.

Common command options

man -a

: Open all matching man pages sequentially. man -aw: Show paths of all manual files, e.g., man -aw passwd. man -M <path>: Specify a custom search path for man pages. man -k keyword: Keyword search (fuzzy). man -f keyword: Exact keyword search.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxcommand-lineUnixman pages
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.