日期:2014-05-16  浏览次数:20918 次

linux里top导出结果是乱码
各位高手们,帮帮我出出主意吧,实在没辙了top |col -b >a.txt 是乱码:谢谢大家
(Btop - 15:04:47 up 49 min, 4 users, load average: 0.04, 0.83, 8.63(B
Tasks:(B(B 185 (Btotal,(B(B 1 (Brunning,(B(B 184 (Bsleeping,(B(B 0 (Bstopped,(B(B 0 (Bzombie(B
Cpu(s):(B(B 6.1%(Bus,(B(B 1.5%(Bsy,(B(B 0.0%(Bni,(B(B 89.2%(Bid,(B(B 3.0%(Bwa,(B(B 0.0%(Bhi,(B(B 0.1%(Bsi,(B(B 0.0%(Bst(B
Mem: (B(B 6106860k (Btotal,(B(B 4941976k (Bused,(B(B 1164884k (Bfree,(B(B 120756k (Bbuffers(B
Swap:(B(B 5144568k (Btotal,(B(B 0k (Bused,(B(B 5144568k (Bfree,(B(B 2685776k (Bcached(B

------解决方案--------------------
top -b -n 1
------解决方案--------------------
top -bn1
------解决方案--------------------
1L的方法ok的

top -b -n 1 > a.txt