man - format and display the on-line manual pages

learn more… | top users | synonyms

6
votes
1answer
279 views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
7
votes
2answers
61 views

texinfo: Can I write non-english info files? Such as Chinese, and how?

Most gnu manual files use info, write a texinfo then makeinfo produces info files, it's great. Can texinfo contain non-English characters then produce non-English infos or pdfs? How can I write ...
2
votes
2answers
48 views

Generate man page in realtime?

I'm working on a command line scripting framework. We would like to generate man pages for our commands. However they are quite dynamic depending on your installation. So ideally we could intercept ...
4
votes
1answer
47 views

Where is the description of man sections' contents?

I have read in many places that section 1 is about User Commands , section 2 about kernel API , section 3 about C library ...so on and so forth. My question is this: How do you get to the short ...
4
votes
4answers
119 views

Any way to cat few lines of man page to show on stdout for reference?

This is a simple question. Trying my best to put it in simple word. Hope you get it without much confusion - I read a man page for some command-switch/option which has a long description. I read it, ...
2
votes
2answers
499 views

Case insensitive search in man pages

Is there a way to search man pages case-insensitively? Using the '/' search feature matches exact case.
14
votes
2answers
263 views

Open man page and search for string in a single command

Instead of doing man chmod and then /a+x to jump to the first section in the chmod man page that mentions a+x, I would like to know if there is a way to open the man page to a specific search string, ...
2
votes
2answers
101 views

How come Debian has no time(1) manpage?

Searching for manpage for time command does not yield any result (search form). As a sidenote, it appears to be a BASH built-in command since dpkg --search bin/time cannot find it. Perhaps such ...
8
votes
4answers
445 views

View man page of not installed package?

On Debian-based systems, can one view the man page of packages that aren't yet installed? I want to check what they are capable first, before installing them.
2
votes
1answer
64 views

Properly inserting code samples in man pages

I'm trying to write a man page for a software, and would like to include some code snippets. I'm currently using the .RS and .RE macros as part of a custom-made .SAMPLE macro, but for some reason that ...
1
vote
3answers
111 views

Is there any manual about C in Linux? If any, what is it?

While I find that we can read some manuals about Library calls (C library functions) & acsii in Linux. But I still do not find any manual about C precedence order so far. So you can recommend ...
0
votes
1answer
131 views

Man displaying groff control characters

Man is displaying groff control characters after I compiled a later version of groff. For example, when I try to view groff's man page: GROFF(1) General Commands Manual ...
16
votes
6answers
467 views

Reading and searching long man pages

I finally got fed up when wanting to read about bash's read and it's -s option with man bash. I found the right spot eventually (around line 4500), but it was a frustrating as usual, since both /read ...
0
votes
2answers
1k views

What does the commands sudo, apt-get, install, and fakeroot stand for? [closed]

I am a newbie to Linux and I am trying to build a custom kernel on ubuntu and I saw this document and it said I needed to install the packages https://help.ubuntu.com/community/Kernel/Compile To ...
2
votes
2answers
137 views

find all commands with wh, find by part of keyword in man page

I want to find all man pages for commands that begin with wh. But I do not understand why the following keyword does not work. man -f "wh" Also if I put man chmod in man page of chmod, it ...
1
vote
0answers
26 views

What are the numbers after program names in Linux/GNU documentation? [duplicate]

I see numbers in parentheses after program names and it confuses me. For example, perldoc mentions that perl grep is "similar in spirit to, but not the same as, grep(1) and its relatives." What does ...
11
votes
2answers
1k views

Does `kill -p` really work?

In the man page of kill it is written as following SYNOPSIS kill [ -s signal | -p ] [ -a ] [ -- ] pid ... kill -l [ signal ] -p Specify that kill should only print the process id ...
2
votes
2answers
127 views

Where can you find the answer to the following question: “How do you get the NUMLOCK key to default to on for the GUI console?”

This is on a fedora machine. I have to look in man pages first to find the answer, if not then in an info page. If the answer is not there then I have to use the internet to find the answer. It is on ...
7
votes
1answer
138 views

Where should I install manual pages in user directory?

I'm trying to create a Makefile for a small Perl utility I wrote, And I'm struggling to find out a way to find where to install my man page when make is run as a non-root user. I'm currently parsing ...
3
votes
3answers
194 views

Nmap -sn: scan or no scan?

The nmap man page has this to say about the -sn parameter: -sn (No port scan) . This option tells Nmap not to do a port scan after host discovery, and only print out the available hosts that ...
2
votes
3answers
3k views

what do I need to do with “man: can't set the locale; make sure $LC_* and $LANG are correct”

I typed man sudoers but got man: can't set the locale; make sure $LC_* and $LANG are correct No manual entry for sudoers What does this mean?
0
votes
1answer
167 views

command --help vs man command [duplicate]

What is the difference between invoking the help using a --help key compared to invoking a "man command"? When should I choose one over another.
6
votes
4answers
231 views

How do I check man pages for what single parameter of the command does?

Example: I am using tar -zxvf command but I don't know what 'x' stands for. How can I check this single parameter without having to scroll all the way through man tar?
1
vote
1answer
138 views

Man folders and MANPATH

This thread What do the numbers in a man page mean? answers the question of the significance of the numbers between parentheses within a man page. My question is related. I have a local installation ...
18
votes
2answers
894 views

Why do Unix man pages use double backticks in place of double quotes?

I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote ...
1
vote
2answers
721 views

Debian - install missing man pages?

I run RaspBMC - a distro based on Raspbian, that's a custom minimal Debian for the Raspberry Pi. If I recall correctly, the man utility is NOT installed by default with RaspBMC (although I may be ...
20
votes
3answers
2k views

What is GNU Info for?

I understand what GNU Info is and how to use it, but what is it for? Why does it exist in parallel to the man pages? Why not write detailed man pages rather than provide a separate utility?
4
votes
1answer
273 views

convert man output to ebook format

I can convert man output to PDF. First, man -t grep >grep.ps (grep is just an example; I am not looking for mobile version of grep man page). Then Adobe Distiller converts PostScript to PDF. ...
2
votes
0answers
56 views

man path and 'man foo' vs. 'man -k foo'

I have a set of man pages in a non-standard location; however, the location is on my MANPATH (and I verified this with man --path). When I do man fst-infl (where fst-infl has a man page in this ...
3
votes
2answers
366 views

Why “man CMD” shows nothing?

After I ran man ls, it shows: Man: find all matching manual pages * ls (1) ls (1p) Man: What manual page do you want? Man: After I entered "1", it shows nothing but "Manual page ls(1) ...
-2
votes
3answers
170 views

Auto continuous scrolling of man output

When I execute man foo the terminal shows only the first page and then pauses. Then I have to manually press the keys to scroll here and there. After executing man foo how do I get an output which is ...
3
votes
3answers
133 views

How do you output an info page to pdf?

If man -t ls | ps2pdf - > ls.pdf is useful for outputting the ls man page via ps2pdf to pdf, what about info pages? I've tried something like the following but with no success: info -o info | ...
16
votes
4answers
1k views

How can I use man without less?

By default, man uses less to output text. How can I tell it to just output to stdout? My terminal emulator has a scroll bar and search function and I want to use those instead of the arrow keys.
2
votes
0answers
167 views

Install man pages in directory with update-alternatives

Using update-alternatives(8) on a Debian system it is possible to add man pages as slaves under some master alternative. For example, the following command installs an alternative man page tclsh.1 ...
2
votes
4answers
140 views

SDK for Developer

Is there any SDK for developers under Linux? I mean more than man pages, it would be more like MSDN Library or Windows SDK under windows, where all documentation about programming and developer guide ...
8
votes
4answers
188 views

Where to search for more info if I don't have Internet?

For example, I was reading setuid man page today. It says: If the effective UID of the caller is root, the real UID and saved set-user-ID are also set. I don't know what set-user-ID is. How can ...
7
votes
3answers
738 views

manpages for my kindle?

I'd like to read unix manpages on my kindle. I know I can just redirect the man output to a file and give it a .txt extension. But is there a convenient way to convert them en masse to a format with ...
3
votes
2answers
63 views

How do I know which library and man page will be found first?

With binaries, I can always do which foo to know which binary I am invoking with $ foo, but what about man pages? Is there a way to know the path of the man page will be loaded by default? Similarly, ...
6
votes
1answer
114 views

How should man pages be installed?

When distributing a custom utility I'll typically write a makefile that installs binaries to /usr/local by default PREFIX ?= /usr/local MANPREFIX ?= ${PREFIX}/man install: install utility ...
1
vote
1answer
114 views

head command options and reading man files

I have two environments: Mac and Linux. I wonder about the head command: it can show just 2 lines of text if I invoke it like so: vim --version | head -2 I saw this online and ran to the man page ...
1
vote
2answers
145 views

How do I make the 'man' utility as comprehensive as ss64.com?

The 'man' utility that comes with a Debian distro is not as comprehensive as ss64.com, and in environment like cygwin, it is even more so. Is there a software or a script that will make my 'man' more ...
3
votes
0answers
248 views

Using symbolic links and git to manage build versions

In general I follow the following workflow when I build any program (e.g. emacs, tmux, etc.) /home/opt/[name of the program]/builds/[version]/ bin lib share For example for a program like tmux I ...
5
votes
2answers
12k views

What units of time does “top” use?

If I issue the "top" command and receive results such as: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 00001 bob 25 0 77380 1212 1200 R 95.8 0.0 89122:13 fee ...
2
votes
2answers
60 views

Why does “User Contributed Perl Documentation” show up when I look for 'man' pages

When I man -f <some string> in addition to the expected Unix man pages, I get a bunch of odd looking entries that all have the header "User Contributed Perl Documentation". For example man ...
1
vote
1answer
130 views

What does the number mean in a man page? [duplicate]

Possible Duplicate: What do the numbers in a man page mean? If I typeman ls, I seeLS(1) in the top left and top right corners of the manpage. I also see programs on the internet being ...
2
votes
1answer
187 views

How is the path to search for 'man' pages set?

I'm puzzled by how the path used for finding man pages is set. The "right thing" seems to happen magically. For example, if change my PATH from ...
1
vote
0answers
34 views

How do the various configuration files determine MANPATH on Darwin?

On Darwin (12.2.0, OS X 10.8.2, bash 3.2.48(1)) my MANPATH appears to be determined by my PATH rather than by the various configuration files associated with man and the man path, /etc/manpaths, ...
15
votes
1answer
511 views

How does “man” restore the screen when I quit the program?

If I open a man page of a program like cat or ls, it prints (may not be the appropriate word) the contents of the man page and when I press q, it shows the screen just like before invoking the man ...
1
vote
1answer
332 views

How do I better read man pages?

How do I search man pages for options? I currently do this: /-<option> Example: To see what grep -i does, I do this: man grep and then /-i. Or, I can do this: man grep | grep .-i Is ...
6
votes
1answer
366 views

Emacs mode for man pages

I'm translating man pages, and have run in to a few problems with Emacs. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if ...