How can I save the output of htop
to a file? With top
, I can run
top -b -n1 > top.txt
where -b
specifies batch mode and -n
specifies the number of iterations.
But the man
page of htop
doesn't offer such a possibility.
Is taking a screenshot the only way?
Best Answer
Ron provided a link to htop output to human readable file and a quote from the top-voted answer by the developer of htop.
However, a little further down on the same page, there's a solution which uses ANSI to HTML conversion. Briefly, install
aha
from the software center and then run:Here's what the first few lines look like: