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
5
votes
3 answers

How to view man pages using emacs when invoking man command in command line?

I would like to view man pages using emacs when invoking man command. I modified the pager parameter in /etc/man.conf PAGER to emacs. But, it doesn't work. Is there anything I should modify ?
user832953
  • 51
  • 2
4
votes
2 answers

Documenting bash functions

I would like to add documentation for bash functions so that users can lookup the functions with man. There should be no visible difference between my functions and actual commands. I know I can do this by overriding man with a function that checks…
Natan Yellin
  • 6,063
  • 5
  • 38
  • 57
4
votes
5 answers

Best practices to put into a man page

Is there a best practices guideline for writing man pages? What should be included in the layout? The standard ones are: NAME SYNOPSIS DESCRIPTION EXAMPLES SEE ALSO There are others like OPTIONS, AUTHOR. As a user what would be useful to have? …
jac_no_k
  • 237
  • 3
  • 4
  • 7
4
votes
0 answers

Manual pages for Linux kernel development?

I am taking an operating system course that requires making modifications to the Linux kernel. I would like to be able to view concise information on functions like proc_create, macros like __init , data types like struct proc_dir_entry and so on,…
4
votes
1 answer

Git Index has files without using `add`

The git index allows us to specify the files that go into a new tree object - such a tree object is what any newly created commit object will point to. I'm aware that using git add puts a file into the index so that a tree can be…
efthimio
  • 592
  • 5
  • 19
4
votes
1 answer

Why does read not have a normal man page?

I would love to learn more about 'read' so to enhance my shell scripting abilities. Usually when I have a thirst for knowledge for any program, I simply type: man [program] Then I learn how to work a program. I've been doing it this way for the…
4
votes
1 answer

alpinelinux 3.12 missing man package?

I'm trying to get manpages working on alpinelinux 3.12, used latest 3.12 version and: # apk add man ERROR: unsatisfiable constraints: man (missing): required by: world[man] Weird? apk add man-pages works perfectly. I've enabled all repos…
NoName13
  • 166
  • 9
4
votes
1 answer

using a man page viewer in eclipse

After having downloaded a Linux Man Page Viewer, I am not seeing the actual man page when hovering over a function. Should i enable it somehow? Is where a menu item i should be using? Please advise
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
4
votes
2 answers

What is not allowed in restricted C for ebpf?

From bpf man page: eBPF programs can be written in a restricted C that is compiled (using the clang compiler) into eBPF bytecode. Various features are omitted from this restricted C, such as loops, global variables, …
Maicake
  • 1,046
  • 10
  • 34
4
votes
1 answer

Avoid space before comma after macro

I'm trying to write a manpage by using the man macro package of Groff. Specifically, I would like to write some text like the following: The daemon can be configured by means of a configuration file. The default location of such file is…
Dacav
  • 13,590
  • 11
  • 60
  • 87
4
votes
3 answers

UNIX System Call Listing?

I have an assignment where I need to use some system calls in UNIX, like mktime() and fnmatch(), to complete some operations. We're given only the names of the man pages to look up to find the functions. Now, this is fine for the purpose of the…
jstm88
  • 3,335
  • 4
  • 38
  • 55
4
votes
0 answers

python setuptools Include man page in RPM

for create rpm with setuptools i use this command: python setup.py bdist_rpm but i want to include man page in the rpmbuild, setuptools can include my manpage.gz in rpm package automatiquely ? i create manpage file and crompress in gz file, but i…
user7454761
  • 53
  • 1
  • 7
4
votes
2 answers

Why does tar allow unhyphenated options?

When reading through man tar, you will see that nowhere is the tar command used without a hyphen. Why then does tar allow the following two commands to be valid: tar c . tar -c .
Joseph Casey
  • 1,283
  • 1
  • 14
  • 34
4
votes
1 answer

May `epoll_ctl` modify the `epoll_event` structure passed to it?

The Linux kernel manpages declare the epoll_ctl procedure as follows: int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); As evident, the event parameter is declared as a pointer to the epoll_event struct. The significance of said…
Armen Michaeli
  • 8,625
  • 8
  • 58
  • 95
4
votes
2 answers

How to escape new line in man pages

I have refactored a man page's paragraph so that each sentence is it's own line. When rendering with man ./somefile.3 The output is slightly different. Let me show an example: This is line 1. This is line 2. vs. This is line 1. This is line 2. Are…
mmlb
  • 877
  • 10
  • 24