我想从“top”命令的输出中获得输出,就像你用“du -h”得到它们一样。 我知道:
top -M应该做这个工作 ,但在Ubuntu实例中,我收到以下消息:
top: unknown option 'M'是否有另一个可以使用的命令,或者我做错了什么?
I would like to get the output from the "top" command in MB, as you get them using "du -h". I know that:
top -Mshould do the job, but on ubuntu instances I receive the following message:
top: unknown option 'M'Is there another command that can be used or am I doing something wrong?
最满意答案
你可以启动top,然后在ubuntu中按shift-E循环访问内存单元。
做这个:
top
shift-E直到你看到顶部的MiB Mem 。
shift-W将您的设置保存为默认值~/.toprc
You can launch top and then cycle through memory units by pressing shift-E in ubuntu.
Do this:
top
shift-E until you see MiB Mem at the top.
shift-W saves your settings as default to ~/.toprc
我如何在ubuntu中以“可读”格式查看“top”命令的结果?(How can I see the results from “top” command in ubuntu in a human readable format?)我想从“top”命令的输出中获得输出,就像你用“du -h”得到它们一样。 我知道:
top -M应该做这个工作 ,但在Ubuntu实例中,我收到以下消息:
top: unknown option 'M'是否有另一个可以使用的命令,或者我做错了什么?
I would like to get the output from the "top" command in MB, as you get them using "du -h". I know that:
top -Mshould do the job, but on ubuntu instances I receive the following message:
top: unknown option 'M'Is there another command that can be used or am I doing something wrong?
最满意答案
你可以启动top,然后在ubuntu中按shift-E循环访问内存单元。
做这个:
top
shift-E直到你看到顶部的MiB Mem 。
shift-W将您的设置保存为默认值~/.toprc
You can launch top and then cycle through memory units by pressing shift-E in ubuntu.
Do this:
top
shift-E until you see MiB Mem at the top.
shift-W saves your settings as default to ~/.toprc
发布评论