man - format and display the on-line manual pages

learn more… | top users | synonyms

85
votes
5answers
8k views

What do the numbers in a man page mean?

So, for example, when I type man ls I see LS(1). But if I type man apachectl I see APACHECTL(8) and if I type man cd I end up with cd(n). I'm wondering what the significance of the numbers in the ...
29
votes
5answers
4k views

How to follow links in linux man pages?

Is there a way to follow the links mentioned in a man page? For example, here's the man page for ps; how do I access the link marked in red?
21
votes
18answers
2k views

Tricks and tips for finding information in man pages

Does anyone have any tricks and tips for finding information in man pages?
21
votes
3answers
868 views

How can I add man page entries for my own power tools?

I have no idea about how I can make my home-grown specialist scripts (written mostly in Bash and Perl) available through the man pages. What procedure would I have to follow, and is there a ...
20
votes
3answers
2k views

What is GNU Info for?

I understand what GNU Info is and how to use it, but what is it for? Why does it exist in parallel to the man pages? Why not write detailed man pages rather than provide a separate utility?
20
votes
3answers
3k views

Colors in Man Pages

When I look at a man page in my 'console' (not an xterm) I see some coloration, but I don't get this in my xterm's (e.g. konsole) is there any way I can enable this? hopefully a fairly simple ...
16
votes
4answers
1k views

How can I use man without less?

By default, man uses less to output text. How can I tell it to just output to stdout? My terminal emulator has a scroll bar and search function and I want to use those instead of the arrow keys.
16
votes
2answers
781 views

Why do Unix man pages use double backticks in place of double quotes?

I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote ...
15
votes
6answers
425 views

Reading and searching long man pages

I finally got fed up when wanting to read about bash's read and it's -s option with man bash. I found the right spot eventually (around line 4500), but it was a frustrating as usual, since both /read ...
15
votes
1answer
468 views

How does “man” restore the screen when I quit the program?

If I open a man page of a program like cat or ls, it prints (may not be the appropriate word) the contents of the man page and when I press q, it shows the screen just like before invoking the man ...
14
votes
2answers
1k views

Can I get individual man pages for the bash builtin commands? [duplicate]

Is there anywhere you can download a manpage for every builtin commands? I know you can just use help or man bash and search to find info about it, but I want them separated, so I can just do man ...
13
votes
2answers
251 views

Open man page and search for string in a single command

Instead of doing man chmod and then /a+x to jump to the first section in the chmod man page that mentions a+x, I would like to know if there is a way to open the man page to a specific search string, ...
12
votes
6answers
794 views

What does the name of the unix command apropos mean?

Apropos is a tool to search the headers of the man pages for a string. What does the name apropos mean?
11
votes
2answers
1k views

Does `kill -p` really work?

In the man page of kill it is written as following SYNOPSIS kill [ -s signal | -p ] [ -a ] [ -- ] pid ... kill -l [ signal ] -p Specify that kill should only print the process id ...
9
votes
2answers
2k views

Difference between help, info and man command

I know that these command will help to get syntax and options for commands but my question is that how they differ from each other?
8
votes
4answers
186 views

Where to search for more info if I don't have Internet?

For example, I was reading setuid man page today. It says: If the effective UID of the caller is root, the real UID and saved set-user-ID are also set. I don't know what set-user-ID is. How can ...
8
votes
4answers
402 views

View man page of not installed package?

On Debian-based systems, can one view the man page of packages that aren't yet installed? I want to check what they are capable first, before installing them.
8
votes
2answers
423 views

Dynamically reformatting man pages on terminal dimension changes

One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now ...
7
votes
3answers
190 views

Why do some commands have man pages and other commands use --help?

Wouldn't it be more consistent if one of these always worked?
7
votes
2answers
641 views

How do you output a list of all man pages in a particular section?

A man page for fork, for example, is in the System Calls section that has number 2: man 2 fork How do you see what else is section 2 without resorting to Google?
7
votes
3answers
691 views

manpages for my kindle?

I'd like to read unix manpages on my kindle. I know I can just redirect the man output to a file and give it a .txt extension. But is there a convenient way to convert them en masse to a format with ...
7
votes
2answers
704 views

Find and install man file manually

I seem to be missing some man pages, notably gcc and g++. It doesn't help that I specify the section. whereis doesn't list man pages for those two, so I think they are simply not there. With Google I ...
7
votes
2answers
54 views

texinfo: Can I write non-english info files? Such as Chinese, and how?

Most gnu manual files use info, write a texinfo then makeinfo produces info files, it's great. Can texinfo contain non-English characters then produce non-English infos or pdfs? How can I write ...
7
votes
1answer
104 views

Where should I install manual pages in user directory?

I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user. I'm currently parsing ...
6
votes
4answers
206 views

How do I check man pages for what single parameter of the command does?

Example: I am using tar -zxvf command but I don't know what 'x' stands for. How can I check this single parameter without having to scroll all the way through man tar?
6
votes
2answers
439 views

Understand synopsis in manpage

I have not being able to understand the synopsis in manpage of a command. For example, let's see the manpage of man itself. By man man: SYNOPSIS man [-C file] [-d] [-D] ...
6
votes
3answers
5k views

Man pages for standard C and C++ libraries on Fedora 14

How do I install them? At present, man fopen gives me No manual entry for fopen. I have the compilers installed and have verified that things do build without problems. Update: This is what I got ...
6
votes
3answers
546 views

Full text search for man pages

apropos works great for searching manual page names and descriptions. Is there a similar command for searching the entire contents of the manual pages?
6
votes
1answer
120 views

Nested lists in man page

I have a command line parameter that takes a number of flags afterwards, which I would like to have as a list inside the parameter list in the man page. Currently I am simply making lines of Flag - ...
6
votes
1answer
112 views

How should man pages be installed?

When distributing a custom utility I'll typically write a makefile that installs binaries to /usr/local by default PREFIX ?= /usr/local MANPREFIX ?= ${PREFIX}/man install: install utility ...
6
votes
3answers
76 views

Can I force `man` to do lower case sensitive matching?

When I search man pages, the search is case sensitive, but only with regard to upper case letters. E.g., x will match x and X whereas X only matches x. This is the man-db version of man, used on ...
6
votes
1answer
433 views

Why does `man -k cron` say `vixie-cron (rpm)` for some results, and how do I read those pages?

I'm trying to find out some details regarding cron and /etc/cron.d/ on a RedHat system. Ironically, my answer is viewable within the vixie-cron-*.src.rpm for this package, but the the man pages for ...
6
votes
1answer
332 views

Emacs mode for man pages

I'm translating man pages, and have run in to a few problems with Emacs. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if ...
6
votes
1answer
233 views

Call man in bash shell for command under cursor

In zsh I can do Esc h for any command, get man page for this command, quit from the man pager and get my command back with all arguments. For example in my shell is entered: zsh# tar -czvf docs.tgz ...
5
votes
2answers
1k views

Colored man pages not working on gentoo

I have a problem using these methods to get colors in my man pages in gentoo. I've asked already in the gentoo forums but it still doesn't work, and the comments in a bug report (Bug 184604) don't ...
5
votes
2answers
175 views

What is the name of the formatting output from man?

Output from man command have bold and underline text that is recoginzed by less like H\x08HE\x08EL\x08LL\x08LO\x08O display HELLO or H\x08_E\x08_L\x08_L\x08_O\x08_ as underline HELLO what is the ...
5
votes
3answers
554 views

How to disable styling on man pages?

Is there an easy way to turn off all styling on man pages? Colors, bold, italics, everything... If not, what is an uneasy way?
5
votes
1answer
156 views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
5
votes
2answers
231 views

How to print (part of) a man page?

The question is: how do you print only part of a man page? Currently I do zcat manpage.1.gz | vim - and just remove everything I don't want to print. Then I pass that through groff and lpr. Are there ...
5
votes
1answer
265 views

What tools allow me to present man pages as formatted HTML on a web server?

What tools exist to make man pages available on a system available via HTTP and link topics together such that references in the SEE ALSO sections and elsewhere will become hyperlinks in the HTML ...
5
votes
2answers
309 views

How to control the page parameters (margins, brochurisation) of `man -t` PostScript output?

I want to print several man pages as several booklets. I need to tweak the output of the man -t command so the resulting PostScript file will have the brochurised page numbering, pages must be ...
4
votes
4answers
790 views

How to dump a man page?

How can I 'cat' a man page like I would 'cat' a file to get just a dump of the contents?
4
votes
3answers
102 views

Specify the sector of manpage

When man declare in bash, I get the manpage of declarein sql. But I would like to get the manage of declare in shell. How can I do that?
4
votes
2answers
168 views

Why do 'man' pages have many extra lines?

When I run the command: man fork There is a highlight line at the bottom that reads: Manual page fork(2) line 52/99 (END) But when I navigate to line 53 and up to 99, these are just blank ...
4
votes
4answers
82 views

Any way to cat few lines of man page to show on stdout for reference?

This is a simple question. Trying my best to put it in simple word. Hope you get it without much confusion - I read a man page for some command-switch/option which has a long description. I read it, ...
4
votes
3answers
58 views

Man page with preserved text decorations, proportional text and fixed-width code

How can I get contents of a man page without the text being wrapped around column 80 or so? I'd prefer the output to have proper formatting, line bolding, underscores, fixed-width font for examples ...
4
votes
2answers
1k views

Can I create a man page for a script? [duplicate]

Possible Duplicate: How can I add man page entries for my own power tools? Most (if not all) Linux commands have their man pages that describe their usage options etc. Can I create similar ...
4
votes
2answers
388 views

'man' page is too narrow (not taking advantage of terminal size)

I'm making my first 'man' page and I'm using groff to do it. However, when I "compile" it and view it, it only takes up a certain amount of columns in my terminal. I've tried viewing other man pages ...
4
votes
1answer
194 views

What does this tcpdump line means?

Reading the manpage of tcpdump I found this example tcpdump 'tcp[tcpflags] & (tcp-syn|tcp-fin) != 0 and not src and dst net localnet' but I don't understand it, especially the last part. The ...
4
votes
3answers
1k views

On Ubuntu Linux, is it normal for mandb to run continuously (apparently in the background)?

I have access to a Ubuntu Linux node at my institution. The nodes are shared among the group, but typically I am the only person who uses this particular node. I am running a calculation in parallel ...