How to save htop output to file?Вывести пол для top -o
$ top -O
....
%CPU
%MEM
....
$ top -b -n1 -o %CPU
$ top -b -n1 -o %MEM
$ top -b -n1 > top.txt
$ sudo apt install aha
$ echo q | htop | aha --black --line-fix > htop.html
$ sudo apt install html2text
$
$ echo q | htop -C | aha --line-fix | html2text -width 999 | grep -v "F1Help" | grep -v "xml version=" > file.txt
$ echo q | htop -C | aha --line-fix | html2text -width 999 | grep -v "F1Help\|xml version=" > file.txt
$ top -b -n1 -o %MEM | head -n30
$ top -O
....
%CPU
%MEM
....
$ top -b -n1 -o %CPU
$ top -b -n1 -o %MEM
$ top -b -n1 > top.txt
$ sudo apt install aha
$ echo q | htop | aha --black --line-fix > htop.html
$ sudo apt install html2text
$
$ echo q | htop -C | aha --line-fix | html2text -width 999 | grep -v "F1Help" | grep -v "xml version=" > file.txt
$ echo q | htop -C | aha --line-fix | html2text -width 999 | grep -v "F1Help\|xml version=" > file.txt
$ top -b -n1 -o %MEM | head -n30
Комментариев нет:
Отправить комментарий