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

Deffa
  • 3
  • 1

1 Answers1

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).
Kamil Maciorowski
  • 69,815
  • 22
  • 136
  • 202
  • 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