echo q | htop | aha --black --line-fix > htop.html PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 00001 bob 25 0 77380 1212 1200 R 95.8 0.0 89122:13 fee 00002 bob 25 0 77380 1196 1184 R 95.4 0.0 88954:14 fi 00003 sam 18 0 427m 16m 6308 R 30.0 0.1 54:46.43 fo 00004 sam 18 0 427m 16m 6308 R 26.5 0.1 52:55.33 fum The Color Key. htop command advantages. Putting monochrome output on the side and returning to our more pleasant colorful and default htop output, what do each of the colors signify? If you take another look at the strace output, you'll see that this file was also opened. The output of Htop command is highly customizable. htop outputs ANSI escape code to use colors and move the cursor around the terminal. apt-get install aha Save htop output as HTML file. The Htop command output can be considered of three parts (header, body and footer). htop is the new kid on the block, and it is powerful. The HTOP setup menu can be accesses using F2 key. There is a great command line program aha that can be used to convert ANSI into HTML. 1. The first great thing about htop is that it will show you your usage per CPU, as well as a meaningful text graph of your memory and swap usage right at the top. htop -d 10 9. $ uptime 12: 59: 09 up 32 min, 1 user, load average: 0.00, 0.01, 0.03 They are taken from the /proc/loadavg file. You can interactively monitor your system’s vital resources or processes in real-time. Syntax: sudo htop -d