21
votes
How do I add line numbers to the man page?
From man man:
-P pager, --pager=pager
Specify which output pager to use. By default, man uses less
-s. This option overrides the $MANPAGER environment variable,
...
12
votes
Accepted
How do I add line numbers to the man page?
Open a manpage, Hit -N then Enter. ( -, then ShiftN, then Enter)
e,g: man man:
1 MAN(1) Manual pager utils MA ...
10
votes
Accepted
Does the info command display man pages?
man and info use different primary sources of information: man displays manpages, typically stored in /usr/share/man, while info displays Info documents, typically stored in /usr/share/info. ...
9
votes
How can I tell what version of Linux I'm using?
There are a ton of answers but I'm looking for more generic. AFAI am concerned the following works on most of systems.
cat /etc/os-release
Example output:
sh-4.4$ cat /etc/os-release ...
8
votes
What is GNU Info for?
(See commands cheat sheet below)
1 - advanced, but lightweight technology
Man pages are flat.
info is a tree.
Both remain text based, so they can be used during low level system development, (...
8
votes
Accepted
8
votes
Accepted
bash -n is a not documented in manpages or info documents
It is in fact documented, but you need to read carefully. The OPTIONS sections of man bash, or info -n invoking bash says:
All of the single-character shell options documented in the description of ...
7
votes
Does the info command display man pages?
The info command displays documentation available in Info format. This is a document format that supports basic text formatting (less than modern man), documents consisting of multiple logical pages, ...
7
votes
Accepted
Creating .info files to be used with tree
Example:
$ cat .info
a.jpg
blah blah
blih blih
*.jpg
jpeg picture
$ tree --info
.
├── a.jpg
│ ⎧ blah blah
│ ⎩ blih blih
├── a.png
├── b.jpg
│ { jpeg picture
├── b.png
└...
6
votes
How do I add line numbers to the man page?
man outputs long lines and assumes you have a pager like less.
Note that the line numbers in the output of a specific man page can vary, because man breaks lines according to the window width you run ...
5
votes
How can I tell what version of Linux I'm using?
To combine some ideas here:
cat /etc/*_version /etc/*-release && uname -a
Should get you want you need on any distribution.
5
votes
Accepted
Redirecting output of info command
On Debian and derivatives like Ubuntu, the bash manual is not installed by default, or only in the man format (and info falls back to displaying the man page when the info manual is not available) ...
4
votes
Does info also look up manpage?
So I wonder if info always look up manpages?
(Assuming that your question is about standalone-info)
Your suspicion is indeed correct. If the standalone program info can not find the corresponding ...
4
votes
Accepted
info: are there vim controls for the info pages?
There are, info has this option:
--vi-keys
use vi-like and less-like key bindings.
so your command for foo is
info --vi-keys foo
4
votes
Get kernel version on Debian and Arch by offline
If you can determine which kernel binary (/boot/vmlinuz... on x86) would be used to boot a given system, file will tell you what kernel version it corresponds to:
$ file /boot/vmlinuz-4.18.0-305.19.1....
3
votes
Convert info/texinfo to man?
You can use info2pod’s info2man tool to convert info pages into man pages. See the Debian package for patches to allow info2man to work with Perl 5.
3
votes
Does the info command display man pages?
man and info are different approaches to providing tools' / commands' manuals. For example, from man tar:
NOTE
This manpage is a short description of GNU tar. For a detailed discussion, ...
3
votes
Why didn't GNU Info succeed man?
GNU info was preceded and influenced by XINFO in TOPS-20.
XINFO was preceded and influenced by INFO in MIT ITS.
Back in the day, discs were tiny, terminals were slow, many
terminals were still paper,...
3
votes
Viewing info pages in a browser
The current releases’ info pages are available on gnu.org. They come in different formats including HTML and nice texy PDF, e. g. for the coreutils:
gnu.org/software/coreutils/manual – overview
gnu....
3
votes
Why didn't GNU Info succeed man?
Honestly, GNU info was incredibly obnoxious and patronizing. you wanted to look up a few things, spend maybe 20 seconds reading and jump to examples and then go on with the next bit of that pipe'd ...
3
votes
Question about info program as described in "Introduction to Linux" by Machtelt Garrels
It sounds as if the operating system was installed without the non-free repo. Quite often, answers to questions like these are answered in the errata-type documentation located in /usr/share/doc.
...
3
votes
How can I tell what version of Linux I'm using?
inxi is a System Information Tool for Linux. It displays handy information concerning system hardware (hard disk, sound cards, graphic card, network cards, CPU, RAM, and more), together with system ...
3
votes
What keystrokes does 'C-p' mean in 'info' utility?
C-c is Ctrl-C. Or Ctrl+C. Or Ctrl+C, or ^C. A dear child has many names. See e.g. the list of notations on Wikipedia.
Similarly, M-c is Meta+c. Current systems don't have a key called that, usually, ...
3
votes
Accepted
How to change the pager for info command
info doesn’t use a separate pager, because it handles navigation — it doesn’t produce a text document to be viewed with another tool. It doesn’t support paging to less.
You might find Pinfo ...
3
votes
Accepted
Cannot find node ' '. How to add downloaded Info document file so that info command worked?
The file you downloaded is an archive, you need to extract its contents:
sudo tar -C /usr/share/info -xof make.info.tar.gz &&
sudo install-info /usr/share/info/make.info /usr/share/info/dir
...
3
votes
How do I add line numbers to the man page?
Others have given working solutions, so I'd like to just add an alternative:
Install the following 2 packages:
bat
bat-extras
The latter will install an application called batman, which will not ...
2
votes
GNU texinfo directory search method?
The search order that info is taking to find files and nodes can be examined by invoking it with the various --debug options (--debug -1 for all debug info).
For example
INFOPATH=: info --debug -1 ...
2
votes
Cannot start the info tutorial in Debian 9 (stretch)
The solution was to install emacs24-common-non-dfsg, which was prompted by this post.
https://emacs.stackexchange.com/questions/7238/info-file-emacs-does-not-exist
You may need a specific version of ...
2
votes
How to use info with awk or gawk?
IMHO this is a bug in the documentation. The section on Using Constant Regexps (6.1.2.1) comes well before the section on String Functions (9.1.3), which contains the actual gensub documentation. ...
2
votes
Accepted
Moving forward in history in GNU info
history-node pops the most recently selected node, which means the history no longer contains that node; there is therefore no way to go “forward”.
There is another way of navigating the history ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
info × 64man × 20
linux × 9
documentation × 7
debian × 6
gnu × 6
command-line × 4
pager × 4
bash × 3
software-installation × 3
shell-script × 2
ubuntu × 2
vim × 2
history × 2
less × 2
ssh × 1
awk × 1
arch-linux × 1
fedora × 1
scripting × 1
terminal × 1
linux-mint × 1
kernel × 1
package-management × 1
compiling × 1