What if docker cannot see the previously displayed information?

  docker, question

After I typed the history command, I only displayed 400-1000 commands, because there were too many records loaded, and the first 400 commands were not visible. the scroll bar scrolled forward up to command 447. how can I see the previous commands?

  1. In Terminal, the default reserved history is 512 lines. You can set the number of reserved rows through edit-> profiles-> edit-> scrolling-> scrolling back.
  2. Add less or more by pipe.

    history | less

  3. Dump to file and view with editor

    history >a.txt
    vim a.txt