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
2 votes
1 answer
28 views

What do curly brackets mean in man page synopsis?

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 ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
-1 votes
1 answer
53 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 ...
user avatar
2 votes
2 answers
49 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 ...
user avatar
  • 797
0 votes
1 answer
61 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 ...
user avatar
-1 votes
1 answer
53 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. ...
user avatar
  • 1,095
0 votes
3 answers
91 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]&...
user avatar
  • 797
0 votes
2 answers
25 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 ...
user avatar
  • 115
0 votes
1 answer
31 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 ...
user avatar
  • 115
1 vote
2 answers
81 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 ...
user avatar
6 votes
3 answers
640 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 ...
user avatar
  • 24.1k
2 votes
1 answer
89 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&...
user avatar
  • 335
4 votes
1 answer
154 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 / ...
user avatar
  • 199
0 votes
1 answer
67 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)...
user avatar
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 / ...
user avatar
  • 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: ...
user avatar
  • 35
12 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.
user avatar
  • 5,340
0 votes
1 answer
62 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: ...
user avatar
  • 393
0 votes
0 answers
26 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 ...
user avatar
0 votes
1 answer
38 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: ...
user avatar
0 votes
0 answers
20 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 ...
user avatar
4 votes
1 answer
449 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 ...
user avatar
-2 votes
1 answer
83 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 ...
user avatar
0 votes
0 answers
23 views

In `less`, how to get search patterns to match ignoring any colors/highlighting/ansi-raw-stuff? (like the default when looking at a man page)

eg, in the man page for less itself, there's a bit like "less does", with the word "less" in green and the word "does" in default formatting, but nevertheless, when I hit ...
user avatar
  • 176
0 votes
1 answer
112 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 ...
user avatar
  • 234
0 votes
0 answers
20 views

`man -H` outputs broken images

I'm trying to convert man pages to epub files an use man -H and ebook-convert for this since it uses The resulting ebook works, but there is a broken image in man pages which contain a table like ...
user avatar
3 votes
1 answer
199 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 ...
user avatar
2 votes
1 answer
1k 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, ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
4 votes
3 answers
385 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, ...
user avatar
  • 189
1 vote
1 answer
38 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 ...
user avatar
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 ...
user avatar
  • 211
2 votes
1 answer
131 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 ...
user avatar
  • 217
-1 votes
1 answer
89 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 ...
user avatar
  • 395
0 votes
1 answer
102 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 ../....
user avatar
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 ...
user avatar
  • 519
-2 votes
1 answer
58 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
user avatar
  • 97
5 votes
1 answer
140 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 ...
user avatar
  • 904
-1 votes
1 answer
42 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.
user avatar
  • 528
0 votes
1 answer
105 views

Installing man pages for Fedora cloud

I have installed a Fedora cloud image for education purposes. It has no man pages. https://github.com/fedora-cloud/docker-brew-fedora/issues/9 writes a solution: Workaround solution for later ...
user avatar
  • 758
2 votes
1 answer
8k 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? &...
user avatar
5 votes
1 answer
578 views

Why a text editor shows different from cat command

I run: $ man cd > mancd $ cat mancd This shows as expected. But when I open the file with VSCode and vim, they are completely different. Why is it and how can I redirect the man page to a file ...
user avatar
  • 599
0 votes
1 answer
56 views

Reference for format of PS1 string replacement in RHEL8 [closed]

In RHEL8 the text of the command prompt presented to the user can be controlled by setting PS1. There are some format specifiers that can be used, for example using '\u' in the string will be replaced ...
user avatar
3 votes
0 answers
113 views

How do I increase the font size and set the page size when exporting a man page to PDF?

I know how to export a man page to PDF: man -Tpdf cat > cat.pdf What if I want to specify the page size (e.g. A4 or A5), and increase the font size (e.g. size 16)? How can I do it? I am using ...
user avatar
  • 1,832
-2 votes
1 answer
136 views

What are the numbers in /etc/passwd? (and is there a way to find answers to these kind of questions without searching the internet)? [closed]

If i run grep user /etc/passwd, i get the string user:x:1021:1021::/home/user:/bin/bash. What does the numbers "1021:1021" mean? And is there a offline way to find what these mean? If i do ...
user avatar
2 votes
1 answer
150 views

What means the definition of path and leaf array in jq --stream man page

In the jq manual page, --stream option, says: Parse the input in streaming fashion, outputing arrays of path and leaf values (scalars and empty arrays or empty objects). For example, "a" ...
user avatar
  • 199
1 vote
0 answers
48 views

man pages have odd characters in the output

I am using Fedora and Gnome. I use GNOME Terminal and I am experiencing some odd output characters which seem to surround certain keywords on output. 1mNAME0m sync - Synchronize cached writes ...
user avatar
2 votes
1 answer
143 views

Man cannot read manpage from NFS, although the file is readable

I have an issue reading man pages that live on an NFS mount. I managed to isolate it to the following minimal example. The man page file is on an NFS mount /data and its path is /data/program.1 I can ...
user avatar
  • 421
0 votes
1 answer
34 views

Print and bind manpages

I intend to print and bind all the manpages for my distribution. For actually retrieving all the manpages, I found I can use rpm2cpio to get all the manpages, but I don't know to retain the formatting ...
user avatar

1
2 3 4 5
12