例如如何改变下列命令的内存输出单位:
代码: 全选
top -b -n 1 -o SHR
就可以保存当前的状态,下次启动时即使是非交互模式也会按照保存的状态来显示
代码: 全选
top -b -n 1 -o SHR
感谢提醒poloshiao 写了:http://manpages.ubuntu.com/manpages/pre ... top.1.html
top - display Linux tasks
使用 size 關鍵字 搜尋
例如
1. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.
2. p: SWAP -- Swapped size (kb)
3. t: SHR -- Shared Mem size (kb)
The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other processes.