Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

how to prevent screen from scroll when using --help

Each time I type rpm --help the whole help display will scroll up the screen. Is there a way in the command line to let the help display to stop at one screen at a time?
0
ghgan
Asked:
ghgan
1 Solution
 
liddlerCommented:
rpm --help|more
0
 
majorwooCommented:
whenever anything does that to you, you can use more

rpm --help | more

which will show you the output, one page at a time.  Press spacebar to scroll downward...
0
 
willy134Commented:
luckily on most linux systems more is aliased or linked to less if it is not I would use

rpm --help | less

less is more!

you can use the vi keys (hjkl) to move around the document and you can do searches with the / key

but as I said more is usually the same as less on linux
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
owensleftfootCommented:
Another trick you can use is to hold shift and press pageup - this will scroll back through the console buffer.
0
 
ghganAuthor Commented:
is the command | more limited only to rpm or also can be use for other type of command line program
0
 
liddlerCommented:
Any command at all - find, ls tail etc
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now