複製 htop 指令的文字內容

用過 htop 應該知道正在執行是無法直接用 Ctrl + C 複製文字內容。所以需要用下列方式複製:

[root@liho ~]# echo | htop -u root > htop.out
[root@liho ~]# head -c -10 htop.out  | tail -c +10

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.