Sunday, 5 November 2017

View a Command's Results One Page (or Line) at a Time

02
of 21

View a Command's Results One Page (or Line) at a Time


Screenshot of the DIR Command with More

Ever run a command, like the dir command, that produces so much information on the screen that it's almost useless? You're not alone.
One way around this is to execute the command in a special way so whatever information is generated is shown to you one page, or one line, at a time.
To do this, just type the command, the dir command for example, and then follow it with the pipe character and then the more command.
For example, executing dir /s | more will generate the thousands of lines of results that you expect from the dir command, but the more command will pause each page of results with -- More -- at the bottom of the page, indicating that the command is not done running.
Just press the spacebar to advance by page or press the Enter key to advance one line at a time.
Tip: One of my other CMD hacks (which you'll see below) provides a different solution to this problem using something called a redirection operator, so stay tuned...

No comments:

Post a Comment

Edit Websites in Browser (Live)

                                        Edit Websites in Browser (Live) Imagine a world where you are a God and have ultimate control ...

ALL POST