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
9
votes
1 answer

open() system call header file requirements

I am using x86_64 GNU/Linux with gcc. SYNOPSIS section of man -s2 open says: #include #include #include int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int…
rootkea
  • 1,474
  • 2
  • 12
  • 32
9
votes
3 answers

Redirecting man page output to file results in double letters in words

I redirected the output of man djpeg into a text file so that I can reference it as I learn to use it. My instruction was man djpeg > textfile.txt. However, the output looks something like this: LS(1) BSD General Commands Manual …
user2565148
  • 313
  • 2
  • 6
9
votes
1 answer

Navigate to another man page within a man page

Say I have given man ls. Within this man page I found another function/keyword that I wanted to check up. Say I found the function name by doing /fun_name. Now I want to see the man page of this fun_name. Only way I know of is to quit to present man…
0aslam0
  • 1,797
  • 5
  • 25
  • 42
9
votes
2 answers

how to create manual entry for deb package

Where do I write a manual entry when creating a deb package? Is there any formatting rule/best practice to respect? I'm very new to deb package creation. Following some tutorials, I just created a package that installs/executes nicely, so now I'd…
aherve
  • 3,795
  • 6
  • 28
  • 41
9
votes
2 answers

Is it possible to use "man std::find" in linux?

I am using Ubuntu, and have already installed libstdc++6-4.7-doc . But it seems man only works with classes, for example $ man std::vector $ man std::istream works, but $ man std::find doesn't work, any ideas? Thanks in advance! MODIFIED: after…
camino
  • 10,085
  • 20
  • 64
  • 115
9
votes
2 answers

How can I use Unicode characters in Perl POD-derived man pages?

And if this isn't possible, what is the best practice for dealing with man pages derived from UTF-8-encoded POD? The first thing to do in order to work with Unicode in POD is to use the directive =encoding UTF-8 (as discussed here). The pod2text…
glts
  • 21,808
  • 12
  • 73
  • 94
8
votes
2 answers

Preview man-page without installing package

I've checked out some typical open source project which is using auto-tools. I want to hack a bit on this package, but I would also like to change something in the man-page of the package. The man-page source is found…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
8
votes
1 answer

What does the ellipsis (...) mean in man pages

I was reading the ln man page and came across the following SYNOPSIS. ln [-Ffhinsv] source_file ... target_dir What does symbol ... above mean?
PunjCoder
  • 450
  • 1
  • 4
  • 12
7
votes
4 answers

Why are *nix commands referred to as Man(1), Diff(1), Cat(1), etc

Possible Duplicate: Why do programs in Unix-like environments have numbers after their name? What does the (1) mean?
ack
  • 14,285
  • 22
  • 55
  • 73
7
votes
2 answers

Distinguishing a pipe from a file in Unix

Given a FILE*, is it possible to determine the underlying type? That is, is there a function that will tell me if the FILE* is a pipe or a socket or a regular on-disk file?
paleozogt
  • 6,393
  • 11
  • 51
  • 94
7
votes
1 answer

Manual pages for C programming on Ubuntu

I want a manual for C programming language to install it on Ubuntu 11.10 , I want to execute man function and be able to view the documentation as I do on system calls and functions. Which package should I install ?
7
votes
2 answers

Include variables from external files or shell commands in custom man page?

I am writing a few custom man pages and I would like to include things that might change often such as the date of the man page's writing. For example, one is in a git repo that I would like to update the man page's date whenever a change is made…
Tropical_Peach
  • 1,143
  • 3
  • 16
  • 29
7
votes
0 answers

tcgetpgrp returns 0 -- implications?

Context: I'm working on an application that needs to determine whether the pseudo-terminal opened by a process is its controlling terminal. I'm trying to use the tcgetpgrp() libc/system call to achieve this. Observations: 1) I noticed that…
userRG
  • 99
  • 7
7
votes
1 answer

Why is this "can't break line" warning from grep of gcc man page?

I was trying to find a line ending with -s with the following command but got warnings: $ man gcc | grep '\-s$' :4808: warning [p 54, 13.2i]: can't break line $ man gcc | egrep '\-s$' :4808: warning [p 54, 13.2i]:…
wlnirvana
  • 1,811
  • 20
  • 36
7
votes
5 answers

C++ man pages in Ubuntu

In Ubuntu linux I can't get any man pages for C++ keywords. Is there some kind of package I can install to fix this?
neuromancer
  • 53,769
  • 78
  • 166
  • 223