1

How can I pause when I enter a command so that I can read the output, the way man [command] does?

For example if I enter

samba-tool drs showrepl

I can't read all the information at the beginning because the output is too long to fit on the page.

adding  ADC samba, virtualbox

Zanna
  • 69,223
  • 56
  • 216
  • 327
Huy Pham
  • 61
  • 1
  • 4
  • Use `| more` or `| less` ([also see here](https://unix.stackexchange.com/questions/81129/what-are-the-differences-between-most-more-and-less)). – Artur Meinild Aug 10 '20 at 09:36

1 Answers1

3

You are asking for what is called a pager. less is one prominent example of a pager. Try

samba-tool drs showrepl | less

When done, simply press q (as in quit).

PerlDuck
  • 13,014
  • 1
  • 36
  • 60