通常有三种方法可以在top中按照内存排序
-
press shift+m after running the top command (按大M)
-
sort mem usage per process in the interactive menu. (在交互页面使用)
- run command top -o +%mem(运行top -o +%mem)
Sort By memory Usage per-process in the interactive menu
press Shift+f to enter the interactive menu (按大f)
press the up or down arrow until the %MEM choice is highlighted (用上下箭选中%MEM)
press s to select %MEM choice (用s选择)
press enter to save your selection (按回车保存)
press q to exit the interactive menu (按q退出交互式页面)
文章来之:Sort By Memory In Top Command on Linux