I know there is a simple unix command that allows you to view things from the top and/or allows you to scroll indefinitely toward the top. Not sure what to call it, so it's difficult to google. Thanks to anyone who can explain how to do either one for me

  • 3
    Scrollback is a function of the terminal emulator bash runs in, not bash itself. It would help if you posted which one you are using (gnome-terminal, xterm, konsole, rxvt, etc). Pipe output to less or any similar pager if you want to be able to scroll up independent of what your terminal can do. – jw013 Oct 10 '11 at 3:32
  • Lol thanks jw013. But I'm not even sure what terminal I am using! (currently I have ubuntu 11.04 installed on my computer, but I'm running it in 'classic mode' which I think using Gnome-3 instead of Unity...?) – Dark Templar Oct 10 '11 at 3:34
  • Yes, 'less' was definitely what I was looking for! However, do you know how to go directly to the bottom in less? (for instance, if the information you are viewing is really really long) – Dark Templar Oct 10 '11 at 3:37
  • Try pressing G. – jw013 Oct 10 '11 at 4:05

I believe Shift+PgUp/PgDn is the binding for wandering the scrollback under the default terminal in recent Ubuntu releases.

  • I don't think that was quite it :( – Dark Templar Oct 10 '11 at 5:15

Terminal multiplexers screen or tmux both have this scrollback feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.