ghgan
asked on
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?
rpm --help|more
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...
rpm --help | more
which will show you the output, one page at a time. Press spacebar to scroll downward...
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
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
Another trick you can use is to hold shift and press pageup - this will scroll back through the console buffer.
ASKER
is the command | more limited only to rpm or also can be use for other type of command line program
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.