Questions tagged [man]

man - format and display the on-line manual pages ("on-line" meaning “on the computer”, as opposed to “on paper”, not “on the Internet”)

Filter by
Sorted by
Tagged with
1
vote
1answer
157 views

Man page aliases

Some man pages document multiple commands/functions in a single page while the man command usually presents the right man page for each one. Example: the man page for malloc/free/calloc/realloc on ...
0
votes
1answer
109 views

What is the convention of the last line (or footer) of a manpage

I want to know where I can find documentation on the meaning or convention of the last line of a manpage, looking through manpage for man didn't help. For example: …$ man top|tail -n 1 procps-ng ...
0
votes
0answers
66 views

Why does man not find entries?

> man ls No manual entry for ls > man tar No manual entry for tar Every command cannot be found, except Git. I installed git a while ago and had trouble getting the git man to show up. I ...
0
votes
1answer
127 views

man <sth> | grep -A2 “SEE ALSO”

When I'm grepping a man page for the section titles written in capitals, it seems as if they are not there. It works with the same words in lowercase. For example, when I write man <xxx> | grep -...
1
vote
1answer
544 views

how to pipe output of ps2pdf to zathura

I want to view manpages as pdf. I tried the following: man -t awk | ps2pdf - - | zathura (combination of this and the last example in the manpage of ps2pdf) However, zathura just shows me a black ...
1
vote
2answers
5k views

What does grep -w do?

In here grep is used with the option -w. I did man grep and grep --help to try to find what the aforementioned option does. Neither output says anything about a -w option. What does that option do? ...
1
vote
2answers
38 views

Passing options into man for a self-written help file

I have a question about the syntax of manpages. I just wrote documentation in manpage format for my little project. I would like to allow users to type man commandname option as in git ...
1
vote
0answers
55 views

Include index info in pdf man pages

I know that I can get to output manual page content with man -Tpdf. Many pdf readers can display and jump to specific points or sections in the document (i.e. by hitting tab from inside zathura). I ...
1
vote
1answer
196 views

Searching man pages doesn't work

I've recently moved from Debian to Arch Linux, and I'm having some trouble with man pages. I can open them just fine, so a command like man printf brings me to the correct page, but if I run man -k ...
0
votes
2answers
163 views

apt packages without manual pages

When I look at what I have installed via apt list --installed, why are there so many entries without manual pages? I tried info [package name] and package name --help and get the output bash: ...
4
votes
2answers
1k views

POSIX Programmer's Manual vs Linux Programmer's Manual

I wanted to take a look at the manpage of pthread_mutex_trylock. By typing man pthread_mutex_trylock, I got No manual entry for pthread_mutex_trylock. Then I saw a post suggest doing sudo apt-get ...
3
votes
1answer
242 views

less search: show match with context before match (within less)

I would like to modify the search behavior when inside less: By default next match is shown at the very top line. Instead show me next match of word at 5th line of screen/ show 4 lines before match. ...
2
votes
2answers
75 views

What is the Position_args in man page

I just Joined Linux and I trying to explore commands with the available resources (mainly man pages) It's easy to understand what are the option args(content in usage and options) in a command ...
1
vote
2answers
132 views

What does “per-interactive-shell” mean?

By typing man bash, we can see FILES /bin/bash The bash executable /etc/profile The systemwide initialization file, executed for login shells /etc/...
17
votes
1answer
4k views

What does the “3am” section means in manpages?

I found this accidentally. I just typed man fork, and instead of showing the system call documentation, it showed to me an awk extension, however, the section page number was 3am, instead of just 3. ...
-1
votes
2answers
246 views

My Lubuntu install has no manual entry for X; what do I need to install?

I was wondering what I need to install in Lubuntu 18.04 for this problem? $ man X No manual entry for X See 'man 7 undocumented' for help when manual pages are not available. $ man x No manual entry ...
0
votes
2answers
704 views

How to install man pages for certain libc functions?

In the past, from time to time, while developing Linux software, I have noticed that some man pages which deal with developer documentation are missing on my systems. This happens mainly on Debian ...
1
vote
2answers
77 views

Can I view a specific chapter in a manual? [duplicate]

Can I view a specific chapter in a manual? I tried man socket(2) in WSL Ubuntu 16.04 (Xenial). This is after I got a recommendation to see chapter 2 in a man of the socket utility.
0
votes
1answer
279 views

grep doesn't show result [duplicate]

I was trying to search in man find, and I would like to know what's going on. $ man find | grep Like Like -lname, but the match is case insensitive. This is a GNU Like -...
7
votes
3answers
631 views

How to search for a string from all the man pages

What command would show all lines containing the string “brace expansion” (ignoring case) in the man pages for Bash? I tried man -wK . | grep "[Bb]race [Ee]xpansion" I have got series of "couldn't ...
0
votes
1answer
158 views

non-printable characters in man pages and logs

I am seeing non-printable characters in a lot of system contexts, like man pages and logs. They show up as a highlighted question mark. For example, in one man page I have the following values: E2 9F ...
0
votes
0answers
41 views

datatypes for Unix command flags

I have been assigned the command: tree -a -F -L level-q -T title. I have to capture the flags and the code is already given to me. All I have to do is find the datatypes for these flags and set up the ...
0
votes
0answers
46 views

How to automatically scroll to requested command when the “General Commands Manual” is shown? [duplicate]

I sometimes end up requesting the man page for a "basic" command like set or pushd that is built-in into the bash/zsh shell. So I type: man set …and I end up here: BASH_BUILTINS(1) ...
23
votes
1answer
2k views

man does not work (too many arguments)

I get this an error when trying to run man on a Linux system: $ LC_ALL=C man man man: Too many arguments Try 'man --help' or 'man --usage' for more information. My man command doesn't seem to be an ...
2
votes
1answer
289 views

Search within man pages of POSIX Programmer's Manual

I would like to search for POSIX functions matching the restrict keyword and my idea (open to other ideas) is to search the SYNOPSIS sections of the POSIX Programmer's Manual for \<restrict\> ...
1
vote
1answer
769 views

Man page for file permission numbers

Is there a man page for the file permission numbers? I'm specifically talking about r = 4 w = 2 x = 1 I can never remember them and I have to google it every time I need to set permissions besides ...
4
votes
2answers
93 views

Strange behaviour redirecting man pages

I wanted to redirect mc's man page to a text file using man mc > mc, but I accidentally executed man mc > mc grep. What resulted was a text file named mc containing two concatenated mc man pages....
3
votes
2answers
92 views

Question about info program as described in “Introduction to Linux” by Machtelt Garrels

I'm going through this book to try and learn Linux and hit a few snags in Chapter 2. In case it matters I'm running Debian 9 in a virtual machine. At the part where the author introduces us to the ...
1
vote
2answers
745 views

What is Games in man page

I'm walking through the manual of man-page. I don't understand the importance of the 6th section Games in Man-pages. What it's really mean?.
8
votes
5answers
2k views

Viewing man pages in vim

I wrote a function in bash to see manpages in vim viman () { man "$@" | vim -R +":set ft=man" - ; } This works fine, the only problem occurs if I pass a manpage to it which doesn't exist. It prints ...
-3
votes
1answer
87 views

I want to execute man command on another command that I get as input from a file

I have a file that contains multiple commands, ls,echo,ps etc. I want to find with a terminal command which command occurs most (have the most appearances on the file) and then execute man to it. For ...
12
votes
1answer
882 views

Find description in man pages for environment variables shown with env command

In man pages, where can I find a detailed description of the environment variables that are listed when env command is run? I have tried man env but it only provides me one example for TZ environment ...
7
votes
1answer
4k views

See 'man 7 undocumented' for help when manual pages are not available - WSL core Ubuntu 18.04 installation

I am using WSL on win10 with lxrunoffline distribution managing utility. My distro is Ubuntu 18.04 core install that can be found here - download link. Typing man man, man pwd or man <anything> ...
0
votes
1answer
348 views

What is the predefined order in which man searches sections? [duplicate]

The description of man in its own man page contains the statement, The default action is to search in all of the available sections following a pre-defined order ("1 n l 8 3 0 2 5 4 ...
0
votes
1answer
47 views

Rendering of underlined dots in man

If you look at the documentation source for man(1) (probably at /usr/share/man/man1/man.1.gz) using, you'll notice lines like this one - .IR page [.\| section \|]\ \|.\|.\|.\|]\ \.\|.\|.\& This ...
3
votes
1answer
2k views

The `PRI` column of `ps` is inconsistent with man pages

I've been trying to understand how scheduling priorities work in linux. Here's what I've got: The kernel uses a priority value for each process which ranges from 0 to 139. The lower the number, the ...
2
votes
2answers
581 views

Is there a specification for the format used by man pages?

I would like to parse man pages into a more structure form, but I'm unable to find a proper specification for the data format under use by man pages. Should I be looking for troff or nroff or groff or ...
1
vote
1answer
405 views

man pages no longer rendering - lots of “permission denied” errors related to pager / vimpager

For reasons I can't determine, within the last two days the "man" command stopped working on my linux server (Ubuntu 18.04). When attempting to run man <anything> I end up at a blank instance ...
6
votes
1answer
6k views

changing default (man) pager

I'm working on Solaris 10, using bash. Want to change default pager from "more" to "less" (because "less is more" :). Tried to do the following: PAGER=less PS. When I do it in csh via setenv PAGER ...
6
votes
2answers
2k views

Docker – debian:stretch-slim – install man and view manpages

When using the debian:stretch Docker image, the /usr/share/man/ directory already contains many manpages, and man can be easily installed to view them: $ apt-get update $ apt-get install man $ man ls ...
2
votes
0answers
213 views

How can I keep colorful terminal output, but disable pagers

On macOS man uses the pager "/usr/bin/less -is" (see man's man page). When I type man , I see colorized output, and I like this. But, I prefer to use the terminal's find commands when using man, and ...
0
votes
1answer
155 views

How to grep/sed/awk regex and color in man pages? [duplicate]

If I do man bash | grep read -c the output is 218. But I want to search only for colored regex in man. I still haven't find an approach. Any hint is welcome.
6
votes
3answers
992 views

Refer to the manual of configure

I follows an instruction to install shtool Download and extract wget ftp://ftp.gnu.org/gnu/shtool/shtool-2.0.8.tar.gz tar -zxvf shtool-2.0.8.tar.gz Build the library $ ./configure $ make I ...
-1
votes
1answer
71 views

Refer to gnu-manual page from bash

I installed the latest GNU/Bash and gnu coreutils on Mac $ bash --version GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin18.0.0) check the coreutils with a g prefix $ gls -l $(which gls) ...
1
vote
1answer
166 views

Make man pages narrow and centered in the terminal

I have a wide monitor and the terminal opened at fullscreen. I want man pages to be narrowed to, say, 100 characters wide, and centered on the screen, like in emacs olivetti mode: https://github.com/...
1
vote
0answers
102 views

How to prevent `$MANSECT` from being altered when using Vim as a manpager?

Inside the file ~/.zshenv I export this value for the MANSECT environment variable (the value is taken from /etc/manpath.config): export MANSECT=1:n:l:8:3:2:3posix:3pm:3perl:5:4:9:6:7 This variable ...
1
vote
1answer
240 views

“man coproc” report error but “help coproc” works (where to find documentation for certain commands?) [duplicate]

I learned that from an instruction: Co-processing does two things at the same time. It spawns a subshell in background mode and executes a command within that subshell. [root@...
11
votes
1answer
722 views

How to search a pattern containing hyphens inside man pages?

I'm trying to find a command to search for a pattern containing hyphens inside all man pages. I've looked at man man, and found these 3 options: -K, --global-apropos Search for text in all ...
16
votes
2answers
3k views

What does C@t{++} mean in the gdb man page?

I was reading the manpage for gdb and I came across the line: You can use GDB to debug programs written in C, C@t{++}, Fortran and Modula-2. The C@t{++} looks like a regex but I can't seem to decode ...
0
votes
1answer
109 views

Searching a keyword in man

I am trying to search for keyword in manual pages, but it doesn't work here. $ man -k syslog Syslog: nothing appropriate.

1 2
3
4 5
11