Questions tagged [manpage]

Man pages are the documentation pages that come preinstalled with almost all substantial Unix and Unix-like operating systems

https://en.wikipedia.org/wiki/Man_page

486 questions
7
votes
5 answers

Best way to author man pages?

What's the best way to author man pages? Should I write using the standard man macros, or is there some clever package available now that takes some kind of XML-ified source and can output man pages, HTML, ASCII, and what not? Thanks
vy32
  • 28,461
  • 37
  • 122
  • 246
7
votes
4 answers

Should I include any or all of the headers listed in the synopsis of a man page?

For example, take open(2), which has the following synopsis: #include #include #include int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int creat(const char…
user1804599
7
votes
2 answers

snprintf man page example memory leak?

The Linux man page for snprintf(3) give the following example: #include #include #include char * make_message(const char *fmt, ...) { int n; int size = 100; /* Guess we need no more than 100 bytes */ …
Roobie Nuby
  • 1,379
  • 12
  • 19
7
votes
1 answer

Is there any common lisp docs like linux man?

I am a newbie for emacs and common lisp. I am now using emacs and slime to learn P.Graham “ANSI Common LISP”. However, when I meet something that I don't konw, I can not easily get some useful info like linux man. Is there any common lisp docs like…
BonderWu
  • 133
  • 1
  • 10
7
votes
2 answers

debian man pages for system calls

I installed debian lenny, but I was quite surprised that I can't get man pages for system calls (man 2 read, etc.) How do I install them?
blefesd
  • 253
  • 1
  • 3
  • 10
7
votes
2 answers

Is there a (RESTful) API for the linux man pages?

I'm looking for a way to query the linux man pages through an API, the closest I've found is http://linux.die.net/man, however there the commands are split into 8 sections, e.g. gcc is in section 1: http://linux.die.net/man/1/gcc, and as it's not…
Phil
  • 1,110
  • 1
  • 9
  • 25
6
votes
2 answers

Man page for golang?

Though go help is useful, but still it's not as expressive as man pages. So, any way to get man page for go binaries on unix based systems? If not, why such a feature hasn't been done since golang is so popular nowadays?
Eric
  • 22,183
  • 20
  • 145
  • 196
6
votes
2 answers

Colored manpages with tcsh?

I really like the colored manpages which can are achieved by export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;44;33m' export…
skorgon
  • 604
  • 4
  • 12
6
votes
3 answers

Why && better than -a in bash?

I've read man test and found: NOTE: Binary -a and -o are inherently ambiguous. Use 'test EXPR1 && test EXPR2' or 'test EXPR1 || test EXPR2' instead. Can someone explain what ambiguously in -a and -o? English is not my native language. As I…
Viktor Khilin
  • 1,760
  • 9
  • 21
6
votes
1 answer

What does "[]" or "<>" mean in some command document?

In some command documents, there are often "[]" or "<>". For example: git diff [options] [] [--] […​] git diff [options] --cached [] [--] […​] git diff [options] [--] […​] What does that mean?
6
votes
1 answer

OS X: "man" output giving extra characters when redirected

I am trying to do a simple output redirect in OS X (El Capitan, v10.11.3) Terminal (bash shell) and am getting a bunch of unwanted characters in the output. This does not happen on Linux. For example, if I type man open > open.txt, I get the…
David Vogel
  • 151
  • 2
  • 10
6
votes
1 answer

how to get c++ man pages on os x?

In Ubuntu, after install libstdc++6-x.x-doc, docs are available via man, for example for libstdc++-4.8-doc: man std::list man std::weak_ptr man std::ios_base Is it possible to install man pages for c++ (using brew or any other means) on OSX? The…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
6
votes
1 answer

Display man page from stdin

I am developing a man page using rst. While I am doing that, I would like a quick way of displaying my end result. I currently do it like this: rst2man < the-man-page.rst > tmp man ./tmp Is there a way to do this with a one liner without creating a…
toftis
  • 1,070
  • 9
  • 26
6
votes
1 answer

Avoid 'Press ENTER to continue' in Vim when entering man pages

When I am editing C files, I want to use K key to open man pages directly and then press q inside the man pages to quit and go back straight to Vim. Every time I do that, I see Press ENTER to continue, which I would like to avoid. How do I do…
syntagma
  • 23,346
  • 16
  • 78
  • 134
6
votes
2 answers

Are there any man pages that summarize bash scripting?

I have a computer science test coming up on basic bash scripting. We work on offline-only linux machines (pretty much stock Fedora) that have all the typical man/info pages installed. That being said, memorizing things like bash if statement tests…
Alexander
  • 59,041
  • 12
  • 98
  • 151