Skip to main content
adding wtf to the manpages
Source Link
user34720
user34720

Bonus: The wtf command can help you with acronyms and it works as whatis if no acronym on it's database is found, but what you are searching is part of the man database. On Debian this command is part of the bsdgames package. Examples:

nwildner@host:~$ wtf rtfm
RTFM: read the fine/fucking manual
nwildner@host:~$ wtf afaik
AFAIK: as far as I know
nwildner@host:~$ wtf afak
Gee...  I don't know what afak means...
nwildner@host:~$ wtf tcp
tcp: tcp (7)              - TCP protocol.
nwildner@host:~$ wtf systemd
systemd: systemd (1)          - systemd system and service manager

Bonus: The wtf command can help you with acronyms and it works as whatis if no acronym on it's database is found, but what you are searching is part of the man database. On Debian this command is part of the bsdgames package. Examples:

nwildner@host:~$ wtf rtfm
RTFM: read the fine/fucking manual
nwildner@host:~$ wtf afaik
AFAIK: as far as I know
nwildner@host:~$ wtf afak
Gee...  I don't know what afak means...
nwildner@host:~$ wtf tcp
tcp: tcp (7)              - TCP protocol.
nwildner@host:~$ wtf systemd
systemd: systemd (1)          - systemd system and service manager
adding info about the help() method.
Source Link
user34720
user34720

Or, the help() funcion inside python shell if you want to read more details of some object:

nwildner@host:~$ python3.6
Python 3.6.7 (default, Oct 21 2018, 08:08:16)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help(round)

Help on built-in function round in module builtins:

round(...)
    round(number[, ndigits]) -> number

    Round a number to a given precision in decimal digits (default 0 digits).
    This returns an int when called with one argument, otherwise the
    same type as the number. ndigits may be negative.

Or, the help() funcion inside python shell if you want to read more details of some object:

nwildner@host:~$ python3.6
Python 3.6.7 (default, Oct 21 2018, 08:08:16)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help(round)

Help on built-in function round in module builtins:

round(...)
    round(number[, ndigits]) -> number

    Round a number to a given precision in decimal digits (default 0 digits).
    This returns an int when called with one argument, otherwise the
    same type as the number. ndigits may be negative.
putting pager section to the top, and expanding it :)
Source Link
user34720
user34720

#The manpager

When you open a manpage using the man command, the output will be displayed/rendered by the less or more commands, or any other command that will be set as your pager(manpager).

If you are using Linux you are probably served with your man infrastructure already configured to use /usr/bin/less -is (unless you installed some minimal distro) as man(1), explain on it's Options section:

-P pager
Specify which pager to use. This option overrides the MANPAGER environment variable, 
which in turn overrides the PAGER variable. By default, man uses /usr/bin/less -is.

On FreeBSD and OpenBSD is just a matter of editing the MANPAGER environment variable since they will mostly use more, and some features like search and text highlight could be missing.

There is a good answer to the question of what differences more, less and most have here(never used most). The ability to scroll backwards and scroll forward by page with Space or both ways by line with or (also, using vi bindings j and k) is essential while browsing manpages. Press h while using less to see the summary of commands available.

And that's why I suggest you to use less as your man pager. less have some essential features that will be used during this answer.

#Pager

When you open a manpage, it will be displayed by the less or more commands. I suggest you switch to less whenever possible. If you are using Linux you are probably served with your man infrastructure already configured to use /usr/bin/less -is (unless you installed some minimal distro) as man(1), explain on it's Options section:

-P pager
Specify which pager to use. This option overrides the MANPAGER environment variable, 
which in turn overrides the PAGER variable. By default, man uses /usr/bin/less -is.

There is a good answer to the question of what differences more, less and mosthave here(never used the last one). The ability to scroll backwards and scroll forward by page with Space or both ways by line with or (also, using vi bindings j and k) is essential while browsing manpages. Press h while using less to see the summary of commands available.

#Pager

When you open a manpage, it will be displayed by the less or more commands. I suggest you switch to less whenever possible. If you are using Linux you are probably served with your man infrastructure already configured to use /usr/bin/less -is (unless you installed some minimal distro) as man(1), explain on it's Options section:

-P pager
Specify which pager to use. This option overrides the MANPAGER environment variable, 
which in turn overrides the PAGER variable. By default, man uses /usr/bin/less -is.

There is a good answer to the question of what differences more, less and mosthave here(never used the last one). The ability to scroll backwards and scroll forward by page with Space or both ways by line with or (also, using vi bindings j and k) is essential while browsing manpages. Press h while using less to see the summary of commands available.

#The manpager

When you open a manpage using the man command, the output will be displayed/rendered by the less or more commands, or any other command that will be set as your pager(manpager).

If you are using Linux you are probably served with your man infrastructure already configured to use /usr/bin/less -is (unless you installed some minimal distro) as man(1), explain on it's Options section:

-P pager
Specify which pager to use. This option overrides the MANPAGER environment variable, 
which in turn overrides the PAGER variable. By default, man uses /usr/bin/less -is.

On FreeBSD and OpenBSD is just a matter of editing the MANPAGER environment variable since they will mostly use more, and some features like search and text highlight could be missing.

There is a good answer to the question of what differences more, less and most have here(never used most). The ability to scroll backwards and scroll forward by page with Space or both ways by line with or (also, using vi bindings j and k) is essential while browsing manpages. Press h while using less to see the summary of commands available.

And that's why I suggest you to use less as your man pager. less have some essential features that will be used during this answer.

better if "not apply" section is at the end.
Source Link
user34720
user34720
Loading
added 621 characters in body
Source Link
user34720
user34720
Loading
adding important manpage part about language specific docs, that reads like manpages.
Source Link
user34720
user34720
Loading
Bounty Awarded with 100 reputation awarded by 0xC0000022L
"not so well" section improvement.
Source Link
user34720
user34720
Loading
adding more info related to xargs
Source Link
user34720
user34720
Loading
improving pager section.
Source Link
user34720
user34720
Loading
default values for commands added.
Source Link
user34720
user34720
Loading
edited body
Source Link
user34720
user34720
Loading
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link
Loading
adding more about synopsis.
Source Link
user34720
user34720
Loading
Bounty Awarded with 200 reputation awarded by terdon
Copy edit and a warning for assuming that switches mean the same thing.
Source Link
terdon
  • 252.2k
  • 69
  • 480
  • 718
Loading
more apropos information.
Source Link
user34720
user34720
Loading
Corrected kilobyte to kibibyte (the unit was already changed before). corrected Mb to MB, since Mb would be megabit.
Source Link
Loading
Loading
added 767 characters in body
Source Link
user34720
user34720
Loading
added 189 characters in body
Source Link
user34720
user34720
Loading
Source Link
user34720
user34720
Loading