Stack Exchange Network

Stack Exchange network consists of 175 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
41 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: ...
0
votes
0answers
35 views

How to enter and leave a man page in a script

I want to run a script that enters a man page and leaves it. Something like (in pseudo-code) $ man man q How can I do such a thing? Preferably the exit code will be 0. More generally how do I do ...
0
votes
1answer
60 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 ...
0
votes
0answers
16 views

Duplicate man tries - the `whatis` command [duplicate]

Some programs return more than one result when running whatis despite the fact that there's only version of them. The snippet below is Bash. $ type -a rmdir rmdir is /bin/rmdir $ whatis rmdir rmdir (...
2
votes
1answer
23 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. ...
-1
votes
0answers
32 views

Why do people refer to application(x), where x is a number, to point to the application's man page? [duplicate]

For what reason are the parentheses and the number mentioned?
2
votes
2answers
53 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
68 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
59 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
1answer
46 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
49 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
47 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
115 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
38 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
20 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
32 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 ...
1
vote
1answer
91 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
291 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
73 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
66 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
66 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
739 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
41 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
384 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 ...
2
votes
1answer
463 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
55 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
40 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
217 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
72 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
72 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
685 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
517 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
35 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
80 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
524 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
53 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
41 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
48 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
65 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
417 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
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
514 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
34 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
84 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
38 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
48 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
25 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 ...