Rather than scroll past hundreds of lines of output to see the previous command history, can the output of the last command be cleared? E.g. after executing
ls, clear its output because you don't need it any more.
This is not your usual
ctrl+L operation. The idea is to scroll back though the history looking for the output of a previous command, but without having to have to scroll past a load of
sudo apt-get install output unless I really want to. It might look something like this:
cat fileIWantToRemember ls directoryIWantToForget # some command that wipes the output of ls # scroll back to see the output of cat immediately