man - format and display the on-line manual pages

learn more… | top users | synonyms

4
votes
1answer
36 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 ...
1
vote
2answers
30 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 ...
9
votes
2answers
809 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 ...
0
votes
1answer
31 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? ...
37
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 ...
4
votes
5answers
158 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 ...
0
votes
3answers
30 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: ...
0
votes
2answers
27 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
23 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 ...
3
votes
2answers
89 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
58 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 ...
1
vote
1answer
25 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 ...
1
vote
4answers
62 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 ...
1
vote
1answer
33 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 ...
11
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 ...
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
23 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 ...
0
votes
0answers
38 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
61 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 ...
3
votes
2answers
99 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
1answer
21 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
34 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 ...
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
42 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 ...
0
votes
1answer
245 views

How to install man pages on centos? [duplicate]

After an install of centos 7, I can't acces man pages : # man ls -bash: man: command not found I tried to install it via yum # yum install man-pages ... ok But again: # man ls -bash: man: ...
0
votes
1answer
27 views

How to convert the manpages of git and its subcommands into a pdf file?

There are two places that I can find manpages of git and its subcommands: https://git-scm.com/docs, and the links to all the git subcommands ...
1
vote
0answers
47 views

problem while using “ yum groups ”

When i am trying to use yum groups commands in RHEL 7 it is giving me following output. #yum groups list There is no installed groups file. Maybe run: yum groups mark convert (see man yum) I have ...
0
votes
1answer
77 views

How to read the man page for a bash builtin? [duplicate]

So, I needed to figure out how "exec" works. However, doing man exec brings me to a 99% useless man page describing what bash builtins are. It of course also does this with many other man pages such ...
-1
votes
1answer
30 views

What's the meaning of (1) in the man page? [duplicate]

With man bc, I have a line starting with bc(1). bc(1) bc(1) NAME bc - An arbitrary precision calculator language Some of ...
4
votes
5answers
848 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 ...
2
votes
1answer
66 views

How do I generate manpages using escape codes for bold, etc.?

While inspecting the source code of less, I noticed that the included manpage (less.man) used terminal escape codes for showing bold text: ^[[1mNAME^[[0m less - opposite of more ...
12
votes
2answers
863 views

What is the “2001 article” for blocking “automated retrieval programs” referred to by the wget man page?

The wget man page states this, under the section for the --random-wait parameter: Some web sites may perform log analysis to identify retrieval programs such as Wget by looking for ...
1
vote
2answers
47 views

How to control content of header in groff man macros

I'm using the groff man macros to produce general purpose documentation (not actually man pages) because they are easy to learn and use. I'd like control of the postscript page header as free text ...
2
votes
0answers
227 views

How to install man pages in CentOS 6.x minimal for all previously installed packages?

I ran into an issue to where man pages were missing from a CentOS 6.x minimal system (this is normal). I installed the man subsystem and then noticed the man pages were still missing for select ...
4
votes
3answers
142 views

Use terminal-based documentation effectively (no web browser) [closed]

The problem I was trying to find shell scripting information without an Internet connection, i.e. via man page. Specifically, I was looking how to pass and use parameters. man bash does not contain ...
0
votes
0answers
21 views

Building man-db on android L

After finding that the version of man in Busybox Stericson doesn't print man pages at all on my Nexus 4, I decided to build man-db for android myself. So far, I've done: cd man-db-2.6.7.1 export ...
1
vote
1answer
55 views

`man` pages for languages other than C (e.g, python, R, javascript, etc)?

man pages are a phenomenal resource while programming in C on Linux. While looking at someone else's code, if you see something foreign you can immediate research it in another terminal with $ man 3 ...
6
votes
1answer
176 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 ...
2
votes
1answer
41 views

what is the significance of the “7” in “man 7 regex”? [duplicate]

When I type man regex into a shell, this loads REGEX(3) Linux Programmer's Manual REGEX(3) ...
0
votes
1answer
511 views

Implicit declaration of strlcpy and strlcat even with “string.h” included

Gcc throws an error when I try to call the functions strlcpy or strlcat in a C file: error : implicit declaration of strlcpy error : implicit declaration of strlcat In what library can I find those ...
3
votes
1answer
44 views

Manpage typography and proper dashes

Should manpages avoid using unicode characters like the m-dash (—)? I've noticed most manpages use hyphens/minuses in their taglines where, I believe, an actual dash would have been more correct ...
10
votes
2answers
246 views

How to open grep(1p) manpage?

At the end of man grep, it says SEE ALSO\ POSIX Programmer's Manual Page grep(1p). I am not able to open the manpage grep(1p). How do I do that? Search net, Unix.SE and did trial and ...
0
votes
2answers
220 views

Where is the latest source code of man command for linux?

I'm looking for the latest source code of man command, the version in my Linux is pretty old(v1.6f), but I failed after googling a while. I mean the latest source code of man, not man-pages but the ...
1
vote
2answers
77 views

How to grep man pages for a word? [duplicate]

Recently I wanted to get info of struct timespec a field of lstat structure, but I couldn't get any. I tried $ man timespec $ man -k timespec timespec: nothing appropriate. After some time I went ...
0
votes
2answers
42 views

Is the mdoc macro set available on non-BSD systems by default?

Are the MDoc macros, commonly used to create BSD manpages, commonly available on non-BSD systems (such as Ubuntu and other GNU Linux distros)? Is it safe to design manpages using them when writing ...
1
vote
1answer
14 views

Simulating vim's scrolloff in manpages

The issue I have could be illustrated best with example: I know curl lets me do POST requests but I don't remember how. So I open man curl, and begin to search for POST. The problem is that every ...
0
votes
2answers
161 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 ...