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?
- In Terminal, the default reserved history is 512 lines. You can set the number of reserved rows through edit-> profiles-> edit-> scrolling-> scrolling back.
- Add less or more by pipe.
history | less
- Dump to file and view with editor
history >a.txt
vim a.txt