3 ms·
Ok this is crude and really you would be better of learning to use screen or tmux, but you could always do the following. login on your first virtual console a
by scrapheap 3y ago
Ok this is crude and really you would be better of learning to use screen or tmux, but you could always do the following.
login on your first virtual console and then run the following (feel free to replace bash with your preferred shell):
bash | tee /tmp/scrollback
Then login on your second virtual console and run:
less +F /tmp/scrollback
Now switch back to your first virtual console and start debugging. When you hit a point you want to scroll back then hop over to your second virtual console hit <CTRL>+C to interrupt less from following your file and you can then scroll back through your output. When you've done scrolling back through your history press <SHIFT>+F (i.e. an uppercase F) in less and it'll go back to following the /tmp/scrollback file
It's not how I would work, but there were times where I've had minimal resources to work with on a physical server and this did the job - albeit in a total impractical way. :)