I'd like to save what scrolls in my terminal into a file. Let's use "make" as an example. Suppose I run "make" to compile some program and I have thousands of lines of errors. I'd like to save the scrolled lines to a file to grep for specific content. So, I do something like this:
. Instead of the thousands of lines of errors, all I will see is something like this
make -C /lib/modules/22.214.171.124/build SUBDIRS=/home/foo/Download/someprogram/Module modules
make: Entering directory `/usr/src/linux-126.96.36.199'
CC [M] /home/foo/Download/some program/Module/main.o
make: Leaving directory `/usr/src/linux-188.8.131.52'
That is, all of the thousands of lines of code between "make" beginning and exiting are absent, so that something in my command does not capture what prints to the screen. Does someone know the command for how to capture everything from a terminal? In other words, this is not a "make" specific question; I'm uninterested in a "make" specific logging switch or some such. I'm interested in how to pipe anything scrolling on the screen to a file - I've used "make" only as an easy example here. Thanks.