0

I'm connected to a Linux terminal using Powershell and ssh.

When I run a command which has more than about 1 window worth of output, the output is cut off. Meaning I only see the last n lines. Is there a way to increase that buffer size or a way to scroll inside the terminal?

Thanks

0

If you use SSH interactively, with tty allocation and interactive shell on the server side, then server-side solutions will work for you. Possibilities:

  • pipe to a pager (e.g. instead of ls -l invoke ls -l | less or maybe ls -l --color=yes | less -r);
  • use terminal multiplexer that can scroll through history (tmux or screen).
2
  • I'm not familiar with Windows. I hope other answer(s) will cover client-side solutions. – Kamil Maciorowski Oct 30 '19 at 18:33
  • piping to less works well. The only problem I could imagine is when I don't realize that there are some lines missing in the first place. – Deffa Oct 30 '19 at 19:47

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.