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/184.108.40.206/build SUBDIRS=/home/foo/Download/someprogram/Module modules
make: Entering directory `/usr/src/linux-220.127.116.11'
CC [M] /home/foo/Download/some program/Module/main.o
make: Leaving directory `/usr/src/linux-18.104.22.168'
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.