The 'top' utility displays a dynamic real-time view of running processes sorted by CPU or memory consumption in Terminal sessions.
Have you considered:
brew install macos system preference pane utilities
Read review:
The 'textutil' command converts document formats between RTF, HTML, Word, and plain text while preserving styling attributes.