Skip to main content
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, ...
aviro's user avatar
  • 6,945
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 ...
GAD3R's user avatar
  • 69.9k
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. ...
Stephen Kitt's user avatar
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 ...
Soner from The Ottoman Empire's user avatar
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, (...
Elliptical view's user avatar
8 votes
Accepted

Install "info" in Debian

You should install the info package: sudo apt install info
GAD3R's user avatar
  • 69.9k
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 ...
choroba's user avatar
  • 49.4k
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, ...
Gilles 'SO- stop being evil''s user avatar
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 └...
Stéphane Chazelas's user avatar
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 ...
Paul_Pedant's user avatar
  • 9,414
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.
Adam Grant's user avatar
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) ...
Stéphane Chazelas's user avatar
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 ...
Rahul Gopinath's user avatar
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
Tagwint's user avatar
  • 2,530
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....
Stephen Kitt's user avatar
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.
Stephen Kitt's user avatar
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, ...
RudiC's user avatar
  • 9,049
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,...
raok's user avatar
  • 131
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....
dessert's user avatar
  • 1,735
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 ...
Florian Heigl's user avatar
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. ...
Christopher's user avatar
  • 16.3k
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 ...
Ahmad Ismail's user avatar
  • 3,100
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, ...
ilkkachu's user avatar
  • 148k
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 ...
Stephen Kitt's user avatar
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 ...
Stephen Kitt's user avatar
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 ...
pepoluan's user avatar
  • 1,433
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 ...
Grisha Levit's user avatar
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 ...
Paul Morris's user avatar
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. ...
muru's user avatar
  • 77.9k
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 ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible