Currently I have set the scrollback setting of gnome terminal (Edit -> Profile Preferences -> Scrolling) to 10000 lines. I am tempted to tick Unlimited, but I am afraid this could lead to memory crashes (if I leave a program with lots of output running overnight, I wouldn't like it to crash because of this).
My questions are:
Are these scrollback lines stored in memory, or are they cached in a file on disk?
If I change from 10000 to 100000 or to 1 million, am I still safe? What parameters (RAM, free disk space, number of open terminals) I need to take into account)? Is selecting Unlimited safe?
lsof
on an xfce-terminal instance. Though there's no reason why XFCE can't implement their own way, this seems a safe and easy way to do it. – muru Aug 03 '15 at 18:16