Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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”)

1
vote
2answers
43 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
40 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 -...
3
votes
3answers
68 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
35 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
19 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
30 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) ...
22
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 ...
1
vote
1answer
67 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
270 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
71 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
62 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
votes
2answers
60 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?.
7
votes
4answers
655 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
39 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
347 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 ...
1
vote
1answer
209 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
53 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
22 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
128 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 ...
3
votes
2answers
67 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
49 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 ...
2
votes
1answer
364 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 ...
2
votes
1answer
255 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
28 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
62 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
483 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
46 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
38 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
41 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
43 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@...
10
votes
1answer
404 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
2k 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
43 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.
6
votes
1answer
350 views

Where does 'man 7 undocumented' come from?

On Ubuntu 16.04, I got the following: ubuntu@ubuntu-xenial:~$ man 2 chmod No manual entry for chmod in section 2 See 'man 7 undocumented' for help when manual pages are not available. ubuntu@ubuntu-...
4
votes
1answer
31 views

piping a man page on MacOS into an editor

Using bash on Mac OS to edit some man pages for my own use. In Mac OS the command open -t filename will open the specified file in the system's default text editor. $ man somepage | col -b will ...
1
vote
1answer
83 views

Can I get common hyperlinks in Info manuals?

If I view man pages using info (e.g. info man), I see common hyperlinks (e.g. apropos(1)). However, Texinfo commands that create hyperlinks (e.g. @xref), in Info output, add a label (*Note) before ...
1
vote
1answer
36 views

How to know if man pages are written in my language?

I know my language hindi is in my locale. I have tried to access the hindi man page using this command- man -Lhi man But it returns english man pages. So I want to find out how to know if man pages ...
0
votes
1answer
35 views

Empty man pages after upgrade to Kubuntu 18.04

When I run the command $ man ls all it shows me is Manual page ls(1) line ?/? (END) (press h for help or q to quit) and after pressing q man: command exited with status 4: (cd /usr/share/man &...
0
votes
1answer
24 views

Retrieve the manual format clipboard

I'd like to retrieve the manual to the clipboard, usually implement the following steps: # man crontab # man crontab > draft.md # cat draft.md then copy it manually from the console, How could I ...
3
votes
6answers
118 views

How do I know if the man page I'm looking at is the correct one?

For example, [fakename]$ type echo echo is a shell builtin But man echo gives me the GNU coreutils version of echo. What's the easiest way to tell if the man page I'm looking at is the correct one, ...
1
vote
1answer
152 views

Where is the “group-separator” option listed in the grep documentation?

My flavor of grep supports --group-separator and --no-group-separator but I only discovered this by googling how to solve a problem: https://stackoverflow.com/questions/2168065/how-do-i-get-rid-of-...
11
votes
2answers
2k views

Why is `time` not in the GNU Bash manual?

[fakename]$ help time time: time [-p] pipeline Report time consumed by pipeline's execution... From this, it seems that time is a Bash builtin. However, I cannot find a description of it on this ...
0
votes
1answer
61 views

Why can't I grep the tmux man page for join-pane? [duplicate]

If I type man tmux then /join-pane I go right to the subcommand I'm looking for: But if I grep the man page then I get nothing: $ man tmux | grep join-pane $ echo $? 1 If I try something different ...
0
votes
1answer
61 views

Finding a man page with a standard C or POSIX type? [duplicate]

Is there a way to find a man page given a Standard-C-type or POSIX-type? Such as man size_t or man uintptr_t. This kind of thing can get confusing because uintptr_t is defined in stdint.h, and size_t ...
0
votes
0answers
27 views

Looking up docs for C header files? [duplicate]

On Ubuntu if I type man 2 time I get, NAME time - get time in seconds SYNOPSIS #include <time.h> time_t time(time_t *tloc); ... I get that this works because time is the ...
2
votes
1answer
47 views

Encoding problems with German man pages

On the machine I am working on I have English man pages under /usr/share/man/and German ones under /usr/share/man/de. The former are encoded with us-ascii, the latter ones with utf-8. Unfortunately ...
0
votes
3answers
67 views

Why doesn't set or export have a man page? [duplicate]

I tried to look up info on export and set using man and was surprised to see there is nothing. Is this true, or is this something distribution specific? Why is the page missing?
2
votes
1answer
40 views

manual pages of built .deb install on Debian but not Ubuntu

I am testing out the build of a .deb package on different distributions using test-kitchen. The built .deb file installs the command to /usr/bin fine on both Debian and Ubuntu. My problem is that the ...
0
votes
0answers
14 views

How to fix stray “Qq” groff_mdoc quoting macros in man page?

In the man page for ssh_config on my system, there are what appear to be groff mdoc quoting constructs, Qq, which I guess are macros that haven't been properly expanded. For example, from the section ...
0
votes
2answers
55 views

Which installation does man find for a command name?

On Lubuntu 18.04, the default awk is mawk, and I found that man awk gave manpag of mawk Then I installed gawk, and awk became gawk. and man awk gave manpag of gawk. I wonder if that is the general ...