Hack Forums
[Shell] Git Bash screen filled with text and can't see the first results. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Git Bash screen filled with text and can't see the first results. (/showthread.php?tid=6018746)



Git Bash screen filled with text and can't see the first results. - rockbottomiswhereiam - Oct 23, 2019

Hello,

I'm using Git Bash console and i executed a program and got many results that filled the whole screen. Now i can't see the first results :/ .

Is there any way to export the current results to a text file or increase the size of the screen capacity?

Thanks in advance!

EDIT: Solved with the Tee command.


RE: Git Bash screen filled with text and can't see the first results. - TyrantKingBen - Oct 23, 2019

You can also just redirect the output to a file.

Code
command > file # redirect stdout to file
command > file 2>&1 # redirect stdout and stderr to file

Then you can open the file in whatever view you want.