1

How can I prevent the problem that in a cmd shell, if I run a command that turns out to have a lot of output then I can't see output of previous commands?

And I'm talking about if I didn't run it with head or tail or outputting to a file.

I'm thinking of some feature that either automatically cuts it off if it's so long that it's going to wipe everything else out. Or, has enough memory allocated to the window to let me scroll back to whatever was before it.

My computer is on Windows 7 though it is probably an issue with later versions of windows too.

14
  • hmm, in linux I'd pass the output through tee or output to a text file and tail that. Or do you want to clear the output periodically?
    – Journeyman Geek
    Commented Oct 22, 2022 at 9:56
  • @JourneymanGeek well, i'm talking about a case were the swamp of output comes unexpectedly.. hence my question says not using tail or head or outputting to a file. I don't want to clear the output periodically!!! I want to read the output. I guess if the window logged everything to a file then that'd be useful
    – barlop
    Commented Oct 22, 2022 at 9:57
  • would the 'classic' > foo.text work?
    – Journeyman Geek
    Commented Oct 22, 2022 at 10:01
  • No this is when I don't expect there to be a swamp of output, I wouldn't do > foo.txt for almost every command. That's why your edit is my title isn't exactly what i'm asking
    – barlop
    Commented Oct 22, 2022 at 10:01
  • I was mainly annoyed by the problemo.. and trying to grok the overall problem :D
    – Journeyman Geek
    Commented Oct 22, 2022 at 10:02

1 Answer 1

1

If I run a command that generates lot of output then I can't see the output of previous commands

You can change the cmd shell window properties "screen buffer size", "height" to a value up to 9999. Then you can use the scrollbar to scroll up.

To do this go to Menu > Default > Layout Tab:

Example:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .