man - format and display the on-line manual pages

learn more… | top users | synonyms

1
vote
1answer
61 views

Access manpage(2) on OS X

In Mac OS X, at the end of the chmod man page, it shows See also: chmod(2) But when I enter man chmod(2) It says that there is no such man page. How can I access the man page chmod(2) man page? ...
8
votes
2answers
2k 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 ...
14
votes
4answers
12k views

what do I need to do with “man: can't set the locale; make sure $LC_* and $LANG are correct”

I typed man sudoers but got man: can't set the locale; make sure $LC_* and $LANG are correct No manual entry for sudoers What does this mean?
2
votes
1answer
26 views

Viewing mm files

The ksh source code at https://github.com/att/ast/tree/master/src/cmd/ksh93 contains files ending with the .mm suffix. E.g., https://github.com/att/ast/blob/master/src/cmd/ksh93/PROMO.mm At first ...
40
votes
21answers
18k views

Tricks and tips for finding information in man pages

Does anyone have any tricks and tips for finding information in man pages?
1
vote
3answers
74 views

How can I print a section of a manual (man)?

From command line, how can I do in order to show a specific section of the result of man something? For example, if I wanted to get some information about the return value of C function write, I'd ...
0
votes
2answers
48 views

How to change the language for man command? [duplicate]

I wanted to ask if it was possible to translate the man and man explanations from the terminal (in Italian language). If, for example, use: man cd Instead of running in English I would that will ...
0
votes
2answers
33 views

Man directory layout — why the subdirectories?

Man expects the man directories listed in $MANPATH or $(manpath) to be split by section into directories named "man$section". This duplicates the section information that is already available in the ...
1
vote
4answers
31 views

discrepancy between path for binary and man page

Systems often have multiple versions of binaries and the one selected depends on the priority in $PATH. For instance, the system I am using has a couple version of sort: $ which sort ~/coreutils-8.25/...
9
votes
1answer
192 views

Create a manpage addressing several executables

I am packaging an application with a bunch of executables accepting roughly the same arguments. I would like to write (and provide) only one manpage with common explanations and the list of arguments. ...
1
vote
1answer
31 views

What is the difference between man and --help? [duplicate]

I used both command lines and displayed the same output
18
votes
3answers
4k 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?
4
votes
5answers
186 views

How can I search for bolded or underlined text?

How can I search for bolded or underlined text? This would often be useful to search for keywords, which are often highlighted as such. For example, in this excerpt from bash(1): I might want to ...
4
votes
1answer
39 views

What does the history command !# do?

From the manual pages on history: Event Designators An event designator is a reference to a command line entry in the his‐ tory list. Unless the reference is absolute, ...
0
votes
1answer
21 views

Redirecting output of `man <command>` to file produces file with tons of `^H` characters on OS X [duplicate]

The following behavior occurs in OS X (10.9.5) with the BSD utils, but not Linux (Ubuntu 15.10) with the GNU utils. OS X: $ man -v man, version 1.6c Linux: $ man --version man 2.7.4 I'm ...
8
votes
3answers
853 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?
1
vote
2answers
40 views

Why is this command to open man page and perform search not working? [duplicate]

This open-man-page-and-search-for-string-in-a-single-command question half covers what I'm trying to do: Instead of doing man chmod and then /a+x to jump to the first section in the chmod man ...
15
votes
2answers
638 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, ...
3
votes
4answers
2k views

How to search the whole manual pages on Linux?

Sometimes I need to look up certain words through all the manual pages. I am aware of apropos, but if I understand its manual right, it restricts search to the descriptions only. Each manual page ...
4
votes
1answer
647 views

“The entry is a door” in Solaris “ls” man page

I found this in a man page for ls in solaris linux. http://www.unix.com/man-page/opensolaris/1/ls/ What does it mean when it says: D the entry is a door?
9
votes
2answers
834 views

Why does “man” command disappear?

I find man command disappears on my RHEL7: # man ls bash: man: command not found... # which man /usr/bin/which: no man in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/go/bin:/root/...
38
votes
3answers
2k views

Purpose of “ASCII text, with overstriking” file format

After downloading the source code for Bash, I was browsing through the doc directory and came across the following files: bash.1 is a regular troff file used to build the man page. bash.0 is like a ...
3
votes
1answer
95 views

How can I list all man pages that have certain text without displaying contents? [duplicate]

I'd like to search for a certain string in all system man pages, but I only want to get a list of the man pages where this text appears. The first 2 pages of results Google returned do not provide ...
10
votes
3answers
3k 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
1answer
202 views

Full list of tput options

I wanted to hide the cursor, and I was aware of tput command. I did search its man page. On searching the Internet, I found $ tput civis # to hide the cursor $ tput cnorm # to bring back the cursor ...
3
votes
2answers
181 views

Can't install man pages on minimal Centos Docker container

I have a minimal Centos 7 Docker image, and I'm trying to get some man pages on it to help in debugging my Dockerfile. Out of the box, it doesn't have much: # man ls No manual entry for ls Per this ...
0
votes
3answers
34 views

How to get help for bash variables use from a command line?

Bash has some special or predefined variables, such as $? and $#. How to know the meaning of those variables use build in command instead of searching online web pages? I have try to use this: ...
3
votes
2answers
108 views

How can I find what package provides a missing man page? [duplicate]

At the bottom of man pcregrep, there is a message: SEE ALSO pcrepattern(3), pcresyntax(3), pcretest(1). However, when I try to view man pcresyntax I get: $ man pcresyntax No manual entry ...
1
vote
1answer
71 views

What is the LESS environment variable to man and how is it set up?

What is the LESS environment variable used for in man? I found that it could make the output of man jump to a match to the pattern stored in LESS. What about when there are several matches? How is ...
0
votes
2answers
36 views

What is the meaning of the option formatting in the rsync man page?

If you run man rsync and go to the options summary, there are alot of long form (i.e. --long-option) style options which are either an alias of, or grouped with a short form option. e.g. OPTIONS ...
4
votes
1answer
24 views

How would I download all available manpages from a distribution?

I'm using a CentOS server and I'd like to have an offline copy of all available manpages. Not just for the packages I currently have installed, but just all possible manpages. Right now, I don't see ...
1
vote
1answer
28 views

Manual pages uses the quotation : `<character/string>' (quoting string inside grave accent and apostrophe) [duplicate]

I've found that many manpages uses the quotation :  `c/s' i.e quoting character or sting inside grave accent(`) & apostophe('). Example visit manpage of bash, find etc. and you'll find the ...
5
votes
2answers
329 views

Man page quotation characters [duplicate]

I've just been looking through a few man pages for a few different commands including grep and ifconfig. I've noticed over a few pages, the content uses a strange syntax to notate what i think are ...
86
votes
2answers
45k views

Ctrl-s hang terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and this key indeed hangs my vim. I was ...
1
vote
4answers
71 views

easy way to just print the man page intro or description

Is there an easy way to quickly view a condensed summary of a man page: just the description description, or intro? I don't see an option/flag that does this, is there another tool that does this for ...
12
votes
4answers
1k views

Do I need to write man pages for C library?

I wrote a small C library for Linux and FreeBSD, and I'm going to write the documentation for it. I tried to learn more about creating man pages and not found the instructions or descriptions of best ...
1
vote
1answer
36 views

Why is there an error when grepping man results?

I am running this command, attempting to grep the output, but I keep receiving this error and I don't understand why. man man | grep color <standard input):977: warning [p 8, 0.8i, div '3tbd1,0'...
45
votes
1answer
2k views

How does `man git init` get the right man page?

So it seems that typing man git init into a bash prompt on an Ubuntu 14.04 system does the same as man git-init, only I'm not quite sure how. The man page for man (i.e. man man) doesn't seem to allow ...
0
votes
2answers
26 views

How do I open BSD System Calls Manual instead of BSD General Commands Manual?

Suppose I wish to read about wait syscall. Typing man wait would only give the manual entry for wait as in shell, not in syscall. However if I type man waitpid, I would get the manual entry for wait ...
5
votes
4answers
387 views

Print man pages with fixed width

With the example command man apropos > outputfile a text file is generated which contains the formatted man page of apropos (with some little differences with respect to man apropos directly ...
0
votes
2answers
208 views

How to automate cryptsetup-luksAddKey with passphrase?

Context: I replaced my passphrase prompted at launch by a keyfile, stored on a USB dongle. My question concerns the step: # cryptsetup luksAddKey /path/to/mykeyfile . I generated my added key is ...
0
votes
0answers
78 views

avconv output_volume option - trying to understand the man page

I'm trying to increase the volume of my input .wav file by means of the output_volume option within the avconv command. I would like to increase the volume by 6 dBs similarly as demonstrated in the ...
1
vote
0answers
63 views

Some commands are no longer responding?

I have a Debian based distribution & lately a problem has been encountered when trying to execute the gcc or man command's (And probably other commands I haven't found yet). When I type them in ...
0
votes
1answer
22 views

man: hide help message

I have set high contrast color for "search results" in man: export LESS_TERMCAP_so=$(tput setaf 1; tput setab 3) so that my search results are highlighted and easy to find. Unfortunately, this ...
0
votes
2answers
37 views

What does the -b option do when using the `at` command, if anything?

According to man at, one of the ways to call at (version 3.1.10 on my system) is with the form: at [-V] [-q queue] [-f file] [-mldbv] time Although -m, -l, -d, and -v are all documented, nowhere ...
5
votes
2answers
223 views

What is the name of the formatting output from man?

Output from the man command has bold and underlined text that can be read by less. For example, H\x08HE\x08EL\x08LL\x08LO\x08O displays HELLO (boldface) or H\x08_E\x08_L\x08_L\x08_O\x08_ displays ...
3
votes
0answers
32 views

Dealing with manpage search

It seems that man -K does not search the formatted output, but the markup source. For example man -K warranties gives many manpages which do not contain the string warranties, like xcalc(1). Also, ...
3
votes
5answers
49 views

List available man page sections for an application

I am thinking about the man page sections 1 = user commands, 2 = system calls etc. Is there a way, a command that will tell me what sections are available to read besides running something like man ...
0
votes
1answer
15 views

How to inform man about number of columns in non interactive mode? [duplicate]

I'm running man in non interactive mode from bash and I'm displaying the result on the webpage. I have number of character per line calculated on a page, how can I inform the man command about number ...
4
votes
5answers
1k views

How do I convert Linux man pages to HTML without using groff?

I would like to convert some Linux man pages to HTML without using groff. My prejudice against groff is due to some PNG rendering issues it is giving me that seems to be localized to Sabayon (as these ...