New answers tagged

-2

Even on my servers (FreeBSD) I install X and xfce. Then I allocate a big buffer (e.g. 10 000 lines) for the terminal emulators so that I can fully scroll out the man page in one of them, and use a separate terminal instance to assemble the command. Works a treat.


-2

it's 2016, just open a second terminal or tab or window or read the man online ..


2

Without modifying the pager, a solution with pipes that can work in most of the environments: Examples for man ls Leave the entire man page in the screen man ls | cat Read a paginated man output, with the possibility of leaving it any time with q: man ls | more filter man contents with a pattern and keep matching lines in the screen: man ls | grep ...


2

You can pipe the output to the cat command man man|cat or use it instead of the default pager, as in this example which invoke man on itself: PAGER=cat man man


9

If you are running less as your pager (which is very common), you don't need to deal with modifying your pager, just do I/O redirection: man <whatever you want to man> | cat - This will print a copy to the terminal so you can scroll up when you need it.


4

As not only less but also other text applications like vim exhibit the same extremely annoying feature, what I do is simply removing the ability for the terminal to support the involved commands from the terminfo database. These commands are smcup and rmcup, which were designed to allow switching on and of a move where the cup command (cursor position) was ...


29

I believe this is not so much about man itself but rather about your pager of choice (PAGER environment variable) combined with the terminal in use. I'm guessing your pager is probably less (typical default pager nowadays and fits with the description). less has an option -X that may get you a behavior along the lines of what you're looking for. -X or -...


0

If you can see some unicode characters in less, but are unable to get less to display emoji, try upgrading less to a more recent version. On Mac OS X, I went from version 458 to 481 and that fixed my problem (for example, git log can now display emoji in commit messages). If you have homebrew, you can replace the system less with a newer version by running ...


2

Hint 1: gpg calls private keys 'secret' because PGP dates from before people settled on the names 'private' key for the half of an asymmetric pair held by (ideally) only one party versus 'secret' key for a symmetric value usually held by two or more mutually trusting parties but nobody else. man gpg2 | less "+/export-secret" then n (go to second match) ...



Top 50 recent answers are included