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
1 answer
26 views

`man <command>` not giving docs that (`which <command>`) executable points to

man <command> doesn't always point to the "right" (as in "given by which <command>"). Is there a way to make sure (or at least increase the chances that) I get docs ...
13 votes
2 answers
2k views

Why is the -e option not in the bash command manual?

I'm a little confused about the missing -e option from the bash manual. man bash But it is working with a script shebang like : #!/bin/bash -e and of course it is defined in help set. Why isn't it ...
  • 1,782
1 vote
2 answers
46 views

Why might `man -awK` be including results that don't match the search term?

Example: man -awK "typeset" This was confirmed by piping to grep: search=typeset man -awK -- "$search" | xargs -I {} sh -c "echo '{}' man --no-hyphenation --no-...
3 votes
2 answers
112 views

How to pipe a man page (without pagination) while intentionally preserving formatting?

Minimal example: man git | cat Real example: man git | grep --color=always -C 3 "pathspec" FWIW, I've tried --pager="cat" using various pagers, as well as piping to various ...
1 vote
1 answer
38 views

How to read the info format of the GNU Standard C Library?

I have installed the glibc-doc-reference package in Debian Bullseye, and the package documentation says that it Contains The GNU C Library Reference manual in info, pdf and html format. The HTML ...
  • 11
0 votes
1 answer
28 views

Where to find purpose of each system default Groups and Users in Linux

when I cat /etc/group and cat /etc/passwd I get a list in which I find many I don't know. I know only group sudo group. But there is are many which I don't knows such as sys, adm .... I like to learn ...
16 votes
2 answers
1k views

How can I keep colouring when piping man to less?

I have this in my .zshrc file export MANLESS="" export LESS="--RAW-CONTROL-CHARS" export LESS_TERMCAP_mb=$(tput bold; tput setaf 5) export LESS_TERMCAP_md=$(tput bold; tput setaf 1)...
0 votes
0 answers
66 views

Search engine for man pages

I needed a function to find a character in a string in c. I used a web browser to search for ”find char in string c” which gave me the information that the function I was looking for is called ”strchr”...
0 votes
1 answer
46 views

Where is the config file for the man command?

since I changed my keyboard layout to Colemak I want to change all my system shortcuts appropriately. Has anyone a good idea where to change the configs globally or where the config for the man ...
  • 1
-4 votes
1 answer
47 views

ps command: how does the '-q' option work?

According with the ps command, for the -q option Through the man is indicated: -q pidlist Select by PID (quick mode). This selects the processes whose process ID numbers appear in ...
2 votes
1 answer
71 views

What do curly brackets mean in man page synopsis? [duplicate]

This question has good answers for synopsis syntax but doesn't have any info on curly brackets '{}': Understand synopsis in manpage Example in the tar man page NAME tar -- manipulate tape archives ...
0 votes
1 answer
28 views

man, how to open another topic?

I thought I could click or press some hot key to jump to another topic on a man page, but searching Google says that they are not hyperlinks. Then, other than existing the current man page and typing ...
0 votes
1 answer
69 views

What is the official 'man' location in the web?

I had the following experience: ps command: how to know all the headers with their respective descriptions? The answer is totally valid, the man available by the OS itself is not updated, so the web ...
0 votes
2 answers
163 views

Problem with 'whatis' command, why it doesn't work?

When I run whatis command, it just outputs "nothing appropriate." no matter what command I pass it to. $ whatis grep grep: nothing appropriate. output of whatis -d grep : From the config ...
2 votes
2 answers
60 views

Is there any quasi-standard for adding "sub-subsections" in a UNIX manual page?

I wonder: Writing a UNIX manual page using the man macro package there is .SH (section heading) and .SS (subsection). But what if I want to have "sub-subsections"? Is there any kind of ...
  • 864
0 votes
1 answer
87 views

How do you use grep with man command? [closed]

I saw a guy how used this command man ssh grep -e "version number" and then got the option printed out for him. But when I do the same command, I get the same result as man ssh. So can the ...
-1 votes
1 answer
64 views

How do I find the location of the source of a man page? [duplicate]

I'd like to pipe a raw manual page, in *roff format, into pandoc to convert it to PDF and show it in a document viewer, e.g., $ my_script vim ... to have a new window showing the formatted man page. ...
  • 907
0 votes
3 answers
109 views

How can I prevent a line break between option and parameter using `.RB` and `.IR`?

When writing a manual page of a command, the SYNOPSIS contains: .RB [ \-v .IR version ] Unfortunately when formatting the SYNOPSIS there is a line break between "[-v" and "version]&...
  • 864
0 votes
2 answers
37 views

All whitespaces are matched in man

In WSL-Ubuntu 18.04 with Bash 4.4.20(1) and man with less I ran inside man grep the command -o,| aiming to match an -o with a comma or with a whitespace after it. But, instead, all whitespaces in the ...
  • 115
0 votes
1 answer
35 views

How to search an argument/flag/option in man with a line break?

In man argument/flag/option chapters generally include a line break, as with: -s silent How could I find only the -s which includes a line break after it, just as in the above example? The ...
  • 115
1 vote
2 answers
94 views

Bash looks for the wrong executable for man

I recently installed TeX-Live and attempted to add its man to the manpath. It didn't work and couldn't find entries, and I didn't care too much. However, (I suppose) after a system restart, the man ...
  • 113
7 votes
3 answers
719 views

Where can I find a complete list of format specifiers for the date command?

I wanted to get the month name on macOS 11.6, and I tried checking the man page of date checking the man page of strptime But I couldn't figure out what format specifier to use to display the month ...
  • 25.2k
2 votes
1 answer
182 views

Debian 11 (Bullseye): man stopped working after upgrade?

After a recent upgrade, man has stopped working, and I can't figure out why. This is my system: # cat /etc/*release* PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux&...
  • 421
5 votes
1 answer
219 views

Using anchor ^ pattern when using less / search command

When navigating through Linux man pages, sometimes you need to query the meaning of flags like -p or -al in the man pages. The default text reader for man pages is less and I'm trying to use the / ...
  • 309
0 votes
1 answer
175 views

`No manual entry for nfs.5` Does this means my installed man pages are incomplete? Or something else?

$ man nfs.5 No manual entry for nfs.5 Does above means my installed man pages are incomplete? Or something else? How to install complete? System is Linux Mint 20.2 (also checked on Ubuntu 20.4 - same)...
1 vote
0 answers
62 views

Broken output of man

Apparently man started to display some text in a weird way. A guess it is somehow related to escape sequences that are not rendered as expected. What should I check? I am using MacOS / iterm2 / ...
  • 119
0 votes
0 answers
15 views

How to make "man set" show bash's set instead of set in postgresql? [duplicate]

In my LXTermianl man set PostgreSQL 13.5 Documentation SET(7) NAME SET - change a run-time parameter If i type help set: ...
  • 209
11 votes
1 answer
2k views

Why does man have its own user?

I'm simply curious as to why man has its own user. $ grep man /etc/passwd man:x:6:12:man:/var/cache/man:/usr/sbin/nologin I'm using Debian Buster.
  • 5,673
0 votes
1 answer
104 views

Linux - Where to place manuals and docs for user binaries?

For applications installed via system package manager, binaries, man pages, and docs go in /usr/bin/, /usr/share/man/man<n>/, and /usr/share/doc/<app-name>/ respectively. For example: ...
  • 413
0 votes
0 answers
33 views

man2html - hanging

I want to view the man page for systemd.network. It's a very long page with many sections and I find it difficult to parse in an organised fashion. I want to fold the topics and open them as I come to ...
0 votes
1 answer
55 views

Install Missing man (5) Page for nginx

How can I install the man 5 page for nginx.conf? It seems that this hasn't been made available when I installed the webserver through my package manager apt (apt install nginx-full). Operating System: ...
0 votes
0 answers
39 views

Man pages cache / db is not recreated after "deleting" /var/cache

I've read Can I safely remove /var/cache?, problems with man were not mentioned, also top answer said: Any application should take into account that the file stored here can disappear any time, and ...
4 votes
1 answer
564 views

Why through man page does not show the complete list of options and through -help yes?

I understood that man <command> is the manual page for any command. For man groupdel is possible see only two options: -h --help -R --root CHRROT_DIR Until here at a first glance one can assume ...
-2 votes
1 answer
116 views

In the synopsis of a man page, what do ellipses following brackets mean? [duplicate]

The following image is from the POSIX documentation's section on Utility Argument Syntax. My question is this: Are the two argument forms in the image more or less identical, besides one using the ...
0 votes
1 answer
160 views

Return value vs return status of a coprocess

I don't understand this sentence about Coprocesses in the bash man page: Since the coprocess is created as an asynchronous command, the coproc command always returns success. The return status of a ...
  • 244
3 votes
1 answer
300 views

Installing man pages for section 9 (kernel routines)

I use kernel.org docs to read about kernel functions. Now I am trying to make possible reading manuals for kernel-mode functions, such as printk with man 9 printk. The section 9 is used for this ...
3 votes
1 answer
2k views

How can I make sure that man has pages installed?

Everytime I run man it returns an error as if no man page entries were installed. Here's an example: % man man No manual entry for man However, I have installed the packages man-db and man-pages, ...
  • 77
0 votes
0 answers
64 views

How can I get rid of permission denied error when executing man to read the manpages?

I'm getting a permission denied error when trying to access the manpages of all executables. For example, here's the following command: % man cat Here's one of the errors returned: zsh: permission ...
  • 77
4 votes
3 answers
525 views

How to list the headers of a man page?

I want to view a list of the headers in a man page without reading all of the man page. For example, in the bash man page (man bash.1) there are many headers: NAME, SYNOPSIS, COPYRIGHT, DESCRIPTION, ...
  • 189
1 vote
1 answer
61 views

Full-text search for manpages and get the list of the name and descriptions from a console like apropos(1)

Is there any way to do a full-text search for manpages and get the list of the name and descriptions of relevant manpages from a console like apropos(1)? You can full-text search the content of ...
7 votes
2 answers
1k views

Why does man complain about a function defined in .profile?

I use Bash 5.1.8. Running man shows the manual page but with the following errors man ps sh: bat: line 10: syntax error near unexpected token `(' sh: bat: line 10: ` *.?(ba)sh)' sh: error importing ...
  • 221
2 votes
1 answer
158 views

How to get apropos to show only executable programs/shell commands?

Most of the times when I use apropos I don't care about system calls, library calls etc — I'm just trying to find a command I forgot the name of. Is there a way to trim down the output of apropos to ...
  • 227
-1 votes
2 answers
150 views

Is there a more interactive man and info pages viewer?

If I use man to view man pages, they are not interactive at all, I can merely change the visuals through a pager. With info I can view man and info pages with interactive links, including the links in ...
  • 419
0 votes
1 answer
115 views

How to tell 'find' command to jump to a position and search? [duplicate]

I'm preparing headers for a C++ project and I decided to use find to get include option to other header files. To list the right path, I need to use cd with it, like: cd 'PATH/TO/HEADER/FILE' find ../....
28 votes
6 answers
5k views

The UNIX and Linux SysAdm Handbook: Why are cached man pages a "security risk"?

The UNIX and Linux System Administration Handbook says: man maintains a cache of formatted pages in /var/cache/man or /usr/share/man if the appropriate directories are writable; however, this is a ...
  • 519
-2 votes
1 answer
62 views

Do all built-in programs in Unix-like system comes with a man page?

Do all built-in programs in the Unix-like system comes with a manual page? If not, then please mention some such programs that doesn't have manual page
  • 97
5 votes
1 answer
154 views

`man -H` always opens a non-existent file in browser

I'm trying to use the command /usr/bin/man -H 3 free to open the manpage in my browser, but each time I run the command, the browser opens a non-existing file and of course the page cannot be ...
  • 976
-1 votes
1 answer
44 views

Is there a convention for naming and placing the manual page file for a command in source tree?

I think the name could be in format <command_name>.<section_number> where the numbers are shown in the description chapter of man man. I use doc directory for the file in a repository.
  • 558
1 vote
2 answers
186 views

Installing man pages for Fedora cloud

I have installed a Fedora cloud image for education purposes. It has no man pages but I want them. Gergely Gombos writes a solution at the fedora-cloud issues page: Workaround solution for later ...
  • 768
3 votes
1 answer
13k views

What's the difference between `chmod a+x` and `chmod +x`? [duplicate]

Found an article saying to use chmod a+x to add execute permission to a file. What is the difference between it and chmod +x? (And is there an easy way to search about these differences in man pages? &...

1
2 3 4 5
12